- Jun
- 137
- 3
I've got a python program, pycky.py, that resides in a directory that's on the system path. I also have PATHEXT set to include the .py extension. Yet if I just enter pycky or pycky.py, it says unknown command. If I give its path, e.g. ..\apps\pycky (or include the .py extension), it runs.
-> set path
C:\Program Files\Python27\;C:\Program Files\Python27\Scripts;C:\Program Files\Python27\Tools\Scripts\;C:\WIP\dvp\tools\python;C:\WIP\dvp\tools\python\ppl;C:\Program Files\Python27\apps; ... (rest of path snipped)
-> set pathext
.COM;.EXE;.BTM;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY
-> assoc .py
.py=Python.File
-> ftype python.file
python.file="C:\Program Files\Python27\python.exe" "%1" %*
Oh, I should add that when I run Option, the GUI tells me that PathExt is checked. However, when I checked its value directly from the command line (option pathext), it said pathext=No. ??? Well, I changed it via command line: option //pathext=Yes. Now it says pathext=Yes. However, it still doesn't run my python program.
So I have two confusions here. First is - why doesn't the python program run? And second, what's up with the option from the command line versus from the GUI?
-> set path
C:\Program Files\Python27\;C:\Program Files\Python27\Scripts;C:\Program Files\Python27\Tools\Scripts\;C:\WIP\dvp\tools\python;C:\WIP\dvp\tools\python\ppl;C:\Program Files\Python27\apps; ... (rest of path snipped)
-> set pathext
.COM;.EXE;.BTM;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY
-> assoc .py
.py=Python.File
-> ftype python.file
python.file="C:\Program Files\Python27\python.exe" "%1" %*
Oh, I should add that when I run Option, the GUI tells me that PathExt is checked. However, when I checked its value directly from the command line (option pathext), it said pathext=No. ??? Well, I changed it via command line: option //pathext=Yes. Now it says pathext=Yes. However, it still doesn't run my python program.
So I have two confusions here. First is - why doesn't the python program run? And second, what's up with the option from the command line versus from the GUI?