Adding an environment variable for Python scripts?

Is it possible to set an environment variable that will then be available to Python scripts and macros?

The environment variables that are set in Terminal are not available inside Glyphs (nor should they).

from os import environ
print(environ.get("HELLO"))

I could set it manually by running a script:

from os import environ
environ["HELLO"] = "World"

If this is the way to go, is it possible to run a script at Glyphs launch? A plugin would probably be overkill.

What do you need that for?

I have a Python module that reads a password from the environment variables. But I can probably find another solution.

Can’t you use user defaults or even the keychain?