BartlebyScrivener wrote: > Gabriel Genellina wrote: > > > > import sys > > print sys.path > > and see what's there. > > Yup. Did that before. That's what I mean. The d:\\python is there and > it doesn't come from the PythonPath in my windows registry. Maybe it > scans for any directory with python in the name? > > ['', 'C:\\WINDOWS\\system32\\python24.zip', 'd:\\python', > 'C:\\Python24\\DLLs', 'C:\\Python24\\lib', > 'C:\\Python24\\lib\\plat-win', 'C:\\Python24\\lib\\lib-tk', > 'C:\\Python24\\Lib\\site-packages\\pythonwin', 'C:\\Python24', > 'C:\\Python24\\lib\\site-packages', > 'C:\\Python24\\lib\\site-packages\\win32', > 'C:\\Python24\\lib\\site-packages\\win32\\lib', > 'C:\\Python24\\lib\\site-packages\\wx-2.7.1-msw-ansi'] > > rd
Hi rd, To revert back to my question, I wanted to add a new path to my PythonWin IDE to access modules which are in folders other than normal python paths. Here, I need to put my modules in different folders since it is a request of the user. I tried to create a new PYTHONPATH in the environmental variables section, which did not work . So, is there any way where I can temporarily append the new path/s, where the PythonWin interpreter would look during run time and discard after the interpreter is closed. For example, my main program "ATS.py" will be put in the folder D:\\dSPACE\ATS\ and my modules will be put in other folders inside the folder ATS, D:\\dSPACE\ATS\ Level Regulation, D:\\dSPACE\ATS\ Curve Detection and so on. So, I would like to tell the interpreter to look in to these folders to import the modules. Is that possible??? Regards, Mohan -- http://mail.python.org/mailman/listinfo/python-list