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')
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417