You want to say you donβt want to add it to the PYTHONPATH environment variable?
If so, you can have the parent directory in which you installed Satchmo added to the python module search path at runtime so that it only applies to your project. Say you have a Satchmo package copied to your project directory as follows:
project/
+-settings.py
+-satchmo/
+-apps/
+-projects/
+-static/
You can then use the following at the beginning settings.pyto get Python to find it:
import sys
import os
sys.path.insert(0, os.path.dirname(__file__))
Steef source
share