[Pythonmac-SIG] problems with sys.path
Christopher Barker
Chris.Barker at noaa.gov
Mon Mar 10 17:03:14 CET 2008
newbie73 wrote:
> placing a .pth file in /Library/Python/2.5/site-packages with code to insert
> my custom paths (including /library/python/2.5/site-packages) in the
> PYTHONPATH variable, yet they do not seem to appear.
Just to be clear -- this won't add anything to the PYTHONPATH
environment variable. Rather, it adds them to sys.path, which is
python's internal path for looking for modules:
> import sys
> print sys.path
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the Pythonmac-SIG
mailing list