Dear All,


Iam Using python 2.3,i have pythonpath in environment variables,is it possible to
rename Pythonpath because i have to use two path alternatively first is pythonpath and second is PythonPath1 any idea?????????

regards
Narain

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')
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.