Hi team. I have a set up with multiple code locat...
# ask-community
m
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
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/