[Pythonmac-SIG] import question
leknarf at pacbell.net
Thu Nov 6 13:48:52 EST 2003
Apologies in advance if this is so simple as to be OT ...
How should I setup the PYTHONPATH var on OSX so that I can
import a module I've built to another script?
I've built a module and installed it in /usr/local/my_stuff/py_modules
I've set the PYTHONPATH environment var in my
setenv PYTHONPATH /usr/local/my_stuff/py_modules
Then sourced rc.mine.
From my script, I get an "ImportError: no module named foo" from this
which exists and is executable in /usr/local/my_stuff/py_modules.
Thanks in advance!
More information about the Pythonmac-SIG