PYTHONPATH & Win 98 - seems broken

Kevin Cazabon kcazabon at home.com
Mon Aug 21 01:16:43 EDT 2000


Well, it doesn't do any good that your PYTHONPATH is set to include the
directory that your prog.py file is in... it's not PYTHON that is
interpreting your command, it's DOS.

If you set your DOS "Path" to include the directory, it will work.  you can
do this by typing:

PATH=%%PATH%%;"c:\My Documents"

(I use the quotes because there's a space in the name, you could use the
short name instead).

You could also type:
python -c "import prog"

or:

python "c:\my documents\prog.py"


Kevin.



"Mitchell Timin" <timin at home.com> wrote in message
news:39A088F0.FFD14445 at home.com...
| Admittedly, I'm a newbie, but it seems clear enough that the PYTHONPATH
| variable should let me access a .py file in a different directory.
details:
|
| I'm working in a DOS window.  PYTHONPATH is set to:
| c:\"my documents"\python.  In that directory is a file prog.py.  My
current
| directory is c:\Python16.  I type: python prog.py, and I get the message
| "can't open file 'prog.py'.
|
| ?
|
| Thanks in advance,
|
| m
|





More information about the Python-list mailing list