PYTHONPATH=/foo python game.py
This will execute game.py, and will enable the script to load modules from the foo directory as well as the local directory.
sys.path.append("/foo")
execute it before running an import command
PYTHONPATH=/foo python game.py
This will execute game.py, and will enable the script to load modules from the foo directory as well as the local directory.
sys.path.append("/foo")
execute it before running an import command