setting pythonpath on Windows NT
Grant Griffin
g2 at seebelow.org
Wed Oct 4 16:56:29 EDT 2000
More information about the Python-list mailing list
Wed Oct 4 16:56:29 EDT 2000
- Previous message (by thread): setting pythonpath on Windows NT
- Next message (by thread): setting pythonpath on Windows NT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Gang, I've been trying to set my PYTHONPATH on Windows NT for my installation of 2.0. Basically, I just want to add a certain directory to my PYTHONPATH. After a fair amount of head-banging, I'm ready to ask you folks for a little help: 1. I added the directory on to the PYTHONPATH variable using NT's Registry Editor. However, it then didn't show up in the sys.path list. I restarted the computer, just in case that was an issue, but it _still_ didn't show up. The sys.path list matched the Registry's original PYTHONPATH, so the Registry entry seems to be the source of it. But that leaves me stumped as to what basis Python discriminates against my addition. 2. Next, I tried adding a ".pth" file inside the Python 2.0 installation. That worked in terms of the sys.path list, and I also could import a module from the new directory. However, I wasn't able to _execute_ a file in that directory on the command line, from another directory. That is, I couldn't do "python Module" or "python Module.py". Should I be able to, or is the PYTHONPATH just not intended for command-line pathing? 3. Does anybody know the format of the ".pth" file for listing multiple directories? The 2.0 doc left an explanation of that as something to be added later. also, 4. Is there any way to _permanently_ set the PYTHONPATH programatically from within Python? (Maybe I could append sys.path, but is that only temporary?) if-_all_-of-python-were-this-hard-to-deal-with,-i'd-still-be-using -perl-<wink>-ly y'rs, =g2 -- _____________________________________________________________________ Grant R. Griffin g2 at dspguru.com Publisher of dspGuru http://www.dspguru.com Iowegian International Corporation http://www.iowegian.com
- Previous message (by thread): setting pythonpath on Windows NT
- Next message (by thread): setting pythonpath on Windows NT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list