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

Marco

02/22/2023, 10:53 PM
Hi team. I have a set up with multiple code locations. One problem I have at the moment is how to set up env variables prior to the ‘executable path’ relative to a given code location being executed. Or more generally having a ‘custom’ executable, in particular a script that sets env vars prior to calling Python. If I do that I get a ‘[Errno 8] Exec format error’. Any idea how to solve?
d

daniel

02/23/2023, 3:18 AM
What about setting the environment variables within Python after the process starts up? There are libraries that can do this like this one: https://pypi.org/project/python-dotenv/
2 Views