PYTHONPATH & Win 98 - seems broken
Mitchell Timin
timin at home.com
Mon Aug 21 08:52:55 EDT 2000
Thanks for trying to help, but:
Kevin Cazabon wrote:
> 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.
I don't think so. DOS interprets the "python" part of the command, and then
passes the rest of the command line to python.exe.
> 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 tried it; doesn't work. (because path is only used to find python.exe)
> You could also type:
> python -c "import prog"
Also doesn't work.
> or:
>
> python "c:\my documents\prog.py"
This works, but it would be more convenient if PYTHONPATH would work like its
supposed to.
>
>
> 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