| | |
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 |
Tag cloud for Python
abrupt ansi anti approximation assignment avogadro backend basic beginner binary bluetooth calculator character code customdialog decimals dictionaries dictionary drive dynamic examples excel exe file float format ftp function gnu graphics gui heads homework http ideas import input java launcher leftmouse line linux list lists loop module mouse number numbers output parsing path pointer port prime program programming progressbar projects py2exe pygame pyqt python random recursion recursive refresh schedule scrolledtext sqlite ssh statistics stdout string strings sudokusolver sum table terminal text thread threading time tkinter tlapse tricks tuple tutorial twoup ubuntu unicode update urllib urllib2 variable wikipedia windows write wxpython xlib






