The directories listed in my .pth configuration file do not appear in sys.path.
The contents of the configuration file named some_code_dirs.pth :
/home/project
File paths:
/usr/lib/python2.6/site-packages/some_code_dirs.pth /usr/lib/python2.6/some_code_dirs.pth
Check sys variables in python interpreter:
>>> print sys.prefix '/usr' >>> print sys.exec_prefix '/usr'
All this seems necessary in the Python documentation, but sys.path does not include the / home / project directory.
Note that the interpreter adds the directory after:
>>> site.addsitedir('/usr/lib/python2.6/site-packages')
What am I missing here?
python pythonpath
chernevik
source share