Python import search path
kevin.misc.10 at gmail.com
Sat Aug 20 05:52:27 EDT 2011
This is the directory tree.
│ ├── a.pth
│ ├── sss.py
I need to import sss.py in ttt.py.
Found a few solution in python docs.
B. add ***.pth file
C. edit .../site-packages/site.py
I found out that a.pth only works when in directory like
instead of in current directory.
I think A is not so pretty, and I don't have root privilege to use B and C.
So any both more elegant and practical solutions?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list