Launcher, and ftype Python.File

Glenn Linderman v+python at g.nevcal.com
Wed Nov 18 03:12:35 EST 2015


Setting up a new machine with Windows 10, I installed Python 3.5.0 and 
the Launcher. Invoking python files from batch files as

foo.py -a -bunch -of -parameters

Didn't seem to do _anything_ so I checked:

d:\>assoc .py
.py=Python.File

d:\>ftype Python.File
Python.File="C:\Windows\py.exe" "%L" %*

I'm surprised by the "%L" where usually programs have "%1". Is this a 
new Windows feature I don't know about yet, or is it a bug in the 
installer for the Launcher?

ftype /?  does not enlighten me that there is a new %L feature available.


I did upgrade to Threshold 2 after installing Python and before using 
it, if that matters, just due to the timing of setting up the new machine.

Turns out I had an empty file named foo.py and that is why it didn't do 
anything, but now I'm just really puzzled about what "%L" means... 
Google doesn't support searching for "%L" very well.



More information about the Python-list mailing list