0

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

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by vegaseat
0

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')
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.