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?????????
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_directoryimport sys
# put this line before you start importing the module
sys.path.append(r'C:\Python25\my_directory')
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.