https://dagster.io/ logo
#ask-community
Title
# ask-community
y

Yang

08/01/2023, 7:15 PM
hey wait, when I'm testing locally, when I'm printing out the EnvVar("ENV"), it's just printing ENV instead of the contents
print(EnvVar("ENV"))
am I supposed to be accessing it a different way? I just have the vars in a .env file. This seems to be happening in my branch deploy, too
t

Tim Castillo

08/01/2023, 7:27 PM
It evaluates to the variable when you're using it within the context of a Resource. Outside of a resource, it'll just print the environment variable name. Apologies, we should be more explicit about that;.
y

Yang

08/01/2023, 7:34 PM
oohhh
2 Views