PYTHONPATH & Win 98 - seems broken

piet at cs.uu.nl piet at cs.uu.nl
Mon Aug 21 10:35:02 EDT 2000


>>>>> Mitchell Timin <timin at home.com> (MT) writes:

MT> Thanks for trying to help, but:
MT> Kevin Cazabon wrote:

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

MT> Also doesn't work.

Apparently PYTHONPATH has troubles with directory names with spaces in it.
Try with a name without space, it should work.

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

MT> This works, but it would be more convenient if PYTHONPATH would work
MT> like its supposed to.

PYTHONPATH is not supposed to do this. It is the path where imported
modules are to be found, not where command line scripts should be found. It
probably would be handy if it would (or another env variable) but this
wasn't its purpose.

B.t.w look at PythonLauncher.
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl



More information about the Python-list mailing list