Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Glenn Linderman Newsgroups: comp.lang.python Subject: Launcher, and ftype Python.File Date: Wed, 18 Nov 2015 00:12:35 -0800 Lines: 26 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 3HqxnHXSP7ZUmzc6euAqwQi2qMg5d3dPocoxXVvGuSvA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '-of': 0.09; 'threshold': 0.09; 'bug': 0.10; 'python': 0.10; '.py': 0.16; 'enlighten': 0.16; 'invoking': 0.16; 'matters,': 0.16; 'received:10.0.90': 0.16; 'received:69.195': 0.16; 'received:69.195.124': 0.16; 'received:io': 0.16; 'received:mail.unifiedlayer.com': 0.16; 'received:psf.io': 0.16; 'received:unifiedlayer.com': 0.16; 'windows': 0.20; 'machine': 0.21; 'feature': 0.24; 'header:User- Agent:1': 0.26; "doesn't": 0.26; 'installed': 0.26; 'turns': 0.27; "i'm": 0.30; 'skip:. 10': 0.32; 'usually': 0.33; 'machine.': 0.33; 'surprised': 0.33; 'file': 0.34; 'received:10.0': 0.34; 'installing': 0.35; 'skip:p 30': 0.35; 'but': 0.36; 'there': 0.36; 'to:addr:python-list': 0.36; 'received:10': 0.37; 'really': 0.37; 'setting': 0.37; 'available.': 0.37; 'seem': 0.37; 'files': 0.38; 'google': 0.39; 'why': 0.39; 'does': 0.39; "didn't": 0.39; 'well.': 0.40; 'to:addr:python.org': 0.40; 'where': 0.40; 'programs': 0.62; 'due': 0.65; 'received:69.89': 0.84 X-Authority-Analysis: v=2.1 cv=IekUBwaa c=1 sm=1 tr=0 a=bHMQH+OLnPEWGwbUEerQzQ==:117 a=bHMQH+OLnPEWGwbUEerQzQ==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=9HSTQGAzAAAA:8 a=7j9GTTBHwvYA:10 a=demwjn5pNaUA:10 a=qtqOOiqGOCEA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=70TKP_hUljcN31AgphoA:9 a=QEXdDO2ut3YA:10 a=n1O90HN4CaF3jZ56V1AA:9 a=AdhDJCeJj5QTavwR:21 a=_W_S_7VecoQA:10 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 X-Identified-User: {1756:box1033.bluehost.com:areliabl:nevcal.com} {sentby:smtp auth 75.141.218.29 authed with test@nevcal.com} X-Content-Filtered-By: Mailman/MimeDel 2.1.20+ X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98950 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.