How do you add directories whose absolute path cannot be guaranteed. For eg, in the directory structure below, I would like to add the "personal", "personal/util", "personal/net" and "personal/lib" directory to sys.path. The "Python" directory could be sitting anywhere in the file system. I added sitecustome.py to "Lib/site-packages", however, I am unable to get the relative path to "personal" from there. Any ideas? Thanks for your time.
Python/
python.exe
pythonw.exe
Lib/
persona/
util/
date.py
time.py
net/
url.py
lib/
xml.py
P.S.: I understand that by putting "personal" under "site-packages" I could resolve the issue, however, I want to keep "personal" outside of "site-packages"