You simply do that within the program that needs the additional path information ...
# if you want to import a custom module that is not
# normally on the PYTHONPATH let's say it is in directory my_directory
import sys
# put this line before you start importing the module
sys.path.append(r'C:\Python25\my_directory')
Last edited by vegaseat; May 3rd, 2008 at 4:57 pm.
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
Offline 5,792 posts
since Oct 2004