hi all
how can i access env variables in ops like we access env vars in yaml
🤖 1
i
Isaac Harris-Holt
06/23/2022, 8:35 AM
You could use
os.environ
in the standard library
a
avinash utekar
06/23/2022, 8:46 AM
nope, its not working . i have created .env file in DAGSTER_HOME i want access those env variables in ops
v
Vinnie
06/23/2022, 9:07 AM
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.