skip to content
Astro Cactus

How to set to use a custome module in python

To use custom module in python script, set PYTHONPATH environment variable to add the dir the custom module in.

Terminal window
export PYTHONPATH="/path/to/dir_module_in:$PYTHONPATH"
python script_using_custom_module.py