954,546 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

RE:Python path

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

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

This question has already been solved

Post: Markdown Syntax: Formatting Help
You