- Set the environment variable PYTHONPATH to include the desired directory before running the script.
- Change the cwd to the desired directory before running the script
- Use pythons OS module to manipluate $PYTHONPATH prior to doing the imports
- Using the sys module, manipulate sys.path to contains the desired directory
- Stuff everything into a zip file and pass that to the python interpreter
Statistics: Posted by thagrol — Thu May 09, 2024 5:08 pm