How to extend sys.path on Win9x permanently?
Martin Bless
m.bless at gmx.de
Mon Jan 29 17:54:55 EST 2001
Python20, Win98, PythonWin
(1) I'd like Python.exe/DOS AND Python in PythonWin to start
up with an extended sys.path, having my own lib added, as if a
sys.path.append('c:\\mylib') had already been performed.
How can I add the extra path permanently?
(2) Here's what sys.path is on my machine. Where is this defined?
Registry?
*.ini?
Hard coded?
sys.path
['', 'c:\\programme\\python20\\win32',
'c:\\programme\\python20\\win32\\lib', 'c:\\programme\\python20',
'c:\\programme\\python20\\pythonwin', 'c:\\programme\\python20\\dlls',
'c:\\programme\\python20\\lib',
'c:\\programme\\python20\\lib\\plat-win',
'c:\\programme\\python20\\lib\\lib-tk']
(3) I'd hate having to put something like "set $PYTHONPATH=..." into
AUTOSTART.BAT, since DOS environment space is very limited.
[... and besides, this new WinMe on one machine dismisses all changes
I make to autoexec.bat und reverts to the previous version the next
time I reboot. How can I change this behaviour?]
thanks a lot
Martin Bless
More information about the Python-list
mailing list