I would like to prevent python from automatically creating __pycache__ directories. From some searching, I have learned that I need to set the PYTHONDONTWRITEBYTECODE python environment variable.
In a Windows environment, is this set the exact same way I would set any other system environmental variable (such as PATH)? If not, how can I set this variable so that any time I run python this is set?