| | |
RE:Python path
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
![]() |
You simply do that within the program that needs the additional path information ...
python Syntax (Toggle Plain Text)
# 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')
Last edited by vegaseat; May 3rd, 2008 at 4:57 pm.
May 'the Google' be with you!
![]() |
Similar Threads
- Please help regarding Python path (Python)
- Python path help 2 (Python)
- Python path HELP (Python)
- simple python web server (Python)
- Compiling Python (Python)
Other Threads in the Python Forum
- Previous Thread: Python Modules reference
- Next Thread: Python with Java
| Thread Tools | Search this Thread |
alarm app beginner cipher cmd cx-freeze data decimals development dictionary directory dynamic error examples feet file float format ftp function generator getvalue gui halp homework http images import input ip itunes java keycontrol leftmouse line linux list lists logging loop maintain maze millimeter module mouse mysqldb number numbers output parsing path port prime programming projects push py2exe pygame pyglet pyqt python queue random recursion schedule screensaverloopinactive script scrolledtext slicenotation sqlite ssh string strings sudokusolver table terminal text thread threading time tkinter tlapse tuple tutorial ubuntu unicode url urllib urllib2 variable variables ventrilo verify vigenere web webservice wikipedia windows wxpython xlwt






