Describe the bug
I'm using environment variables from a .env file. It seems that when using scalene, these variable are not loaded -> os.getenv("MY_VARIABLE") returns None and os.environ["MY_VARIABLE"] returns a KeyError at runtime. In normal Python execution, it loads the environment variables without any problems.
To Reproduce
Steps to reproduce the behavior:
Create a .env file in your project
Create a key/value pair like HELLO="world"
Load the env variable in your program either with os.getenv("HELLO") or os.environ["HELLO"]
See error
Expected behavior
I would expect scalene to load the environment variables from the .env file at runtime/profiling.
Desktop (please complete the following information):
Describe the bug I'm using environment variables from a .env file. It seems that when using scalene, these variable are not loaded ->
os.getenv("MY_VARIABLE")
returnsNone
andos.environ["MY_VARIABLE"]
returns aKeyError
at runtime. In normal Python execution, it loads the environment variables without any problems.To Reproduce Steps to reproduce the behavior:
HELLO="world"
os.getenv("HELLO")
oros.environ["HELLO"]
Expected behavior I would expect scalene to load the environment variables from the .env file at runtime/profiling.
Desktop (please complete the following information):