PDA

View Full Version : [SOLVED] How to add path to "PATH BROWSER" in IDLE



mal_conductor
March 4th, 2009, 02:28 AM
The Python book I am learning from asks to import programs as modules with the command "import"

The programs being imported are part of the companion CD.

How do I edit the Path Browser to include the directory where I saved the companion CD.

(I do not want to save the CD in any of the paths currently in sys.path. I want to add a path to sys.path)


Thank you

=========================

days_of_ruin
March 4th, 2009, 02:37 AM
import sys
sys.path.append('/media/cdrom/something')

Something like that should work.

mal_conductor
March 4th, 2009, 02:41 AM
Thank you. Worked great.