Hi,<div><br><div>This is the directory tree.</div><div>project</div><div>└── sme</div><div>    ├── src</div><div>    │   ├── a.pth</div><div>    │   ├── sss.py</div><div>    └── test</div><div>        └── ttt.py</div><div>
<br></div><div>I need to import sss.py in ttt.py.</div></div><div><br></div><div>Found a few solution in python docs.</div><div>A. sys.path.append</div><div>B. add ***.pth file</div><div>C. edit .../site-packages/site.py</div>
<div><br></div><div>I found out that a.pth only works when in directory like /usr/lib/pythonX.Y/site-packages </div><div>instead of in current directory.</div><div><br></div><div>I think A is not so pretty, and I don't have root  privilege to use B and C.</div>
<div>So any both more elegant and practical solutions?</div><div>Thanks.</div><div><br></div><div>Kevin Zhang</div><div><br></div>