hi all how can i access env variables in ops like ...
# ask-community
a
hi all how can i access env variables in ops like we access env vars in yaml
🤖 1
i
You could use
os.environ
in the standard library
a
nope, its not working . i have created .env file in DAGSTER_HOME i want access those env variables in ops
v
Someone from Dagster might wanna correct me if I’m wrong, but as I understand the working directory of your code isn’t the same as your dagster_home. The .env file should be in the working directory.