getenv

Updated environment variable but os.getenv() keeps returning None

Updated environment variable but os.getenv() keeps returning None Question: I can’t seem to get my code to respond to custom environment variables so I wrote a piece of code to test it. os.getenv is not pulling the environment variables that I’ve set in BASH into my Python code. $ FRUSTRATION="PYTHON!!" $ echo $FRUSTRATION PYTHON!! $ …

Total answers: 2