Python rewards PYTHONPATH an environment variable. This is PATH as a variable that defines the environment variable where Python loads the modules.
Inside the .py script PYTHONPATH you can access and update it using the sys.path variable.
If you can show more source code as you create the Python interpreter, you might be given a more useful answer.
source share