redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

how to add a directory to python modules search path



 
Post new topic   Reply to topic    Web Design Forums -> Python programming forum
View previous topic :: View next topic  
Author Message
optomeb



Joined: 19 May 2006
Posts: 113
Hello!
Is there a way to add a directory to python modules search path ?
  Reply with quote


froomzer



Joined: 23 May 2006
Posts: 148
Sys.path.append()
Or did you mean outside python? from the shell?
Sys.path is created at runtime from $PYTHONPATH
  Reply with quote
optomeb



Joined: 19 May 2006
Posts: 113
froomzer, I want to make it globally not in a script . I have system python modules in /usr/lib/python-vv/ and in /opt/gnome/lib/python/
  Reply with quote
froomzer



Joined: 23 May 2006
Posts: 148
PYTHONPATH=/my/path:$PYTHONPAHT
  Reply with quote
optomeb



Joined: 19 May 2006
Posts: 113
froomzer, Thanks alot
  Reply with quote
Page 1 of 1
Post new topic   Reply to topic    Web Design Forums -> Python programming forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group