Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #83132
| Return-Path | <rosuav@gmail.com> |
|---|---|
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:Windows': 0.02; 'scripts': 0.03; 'interpreter': 0.05; 'nicely': 0.07; 'arguments': 0.09; 'latter': 0.09; 'pep': 0.09; 'wrong,': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'jan': 0.12; 'systems.': 0.12; 'advanced,': 0.16; 'args.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'governed': 0.16; 'subject:Line': 0.16; 'types,': 0.16; 'folder': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'settings': 0.22; 'select': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'skip:" 20': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'unix': 0.29; 'message- id:@mail.gmail.com': 0.30; 'microsoft,': 0.31; 'work:': 0.31; 'file': 0.32; 'subject:from': 0.34; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'view,': 0.36; 'should': 0.36; 'application': 0.37; 'thank': 0.38; 'little': 0.38; 'sure': 0.39; 'changed': 0.39; 'tell': 0.60; 'times': 0.62; 'different': 0.65; 'details': 0.65; 'between': 0.67; 'compliant': 0.68; '2015': 0.84; 'stewart': 0.84; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=AA1M6GGuglPQeJHEIHl/gZC8KkPk4SBvWCPxlx9fzPw=; b=JTZTtIWgiRdoMf8OW7ftL+ZaNpedUrPIgNIZCPSwxcx2zgG2sS99pwowop5nQlKDcm Nhw5wmOeC7AdQpwkef/H6um8wzfqTiVXfVsDoyMB0cNGPGtnLNzyTtgvv3YFdJQieaK8 6neDWq8hDACNMGqpYyVwYkSNJzqxrB749jMXx5qdwU8agot07WRQ0ZWfQ/Ju5fKMwjSq ViOj2bMbvxsZ8ll7gErqBTuciPATkjTBQUICTtbBnhm4Tu28gWxPbVOD5lvFeqFnzXx+ 7kg7+yKjvb0KTZKUrb5abZ8N5t9CXSVhYsaA9ddVIIyDtNOnlw0zXPuk6e4lZgtBGr2f WJog== |
| MIME-Version | 1.0 |
| X-Received | by 10.50.171.201 with SMTP id aw9mr791875igc.2.1420234145470; Fri, 02 Jan 2015 13:29:05 -0800 (PST) |
| In-Reply-To | <COL130-DS1607D96864155F77FE9C11C85D0@phx.gbl> |
| References | <COL130-DS1607D96864155F77FE9C11C85D0@phx.gbl> |
| Date | Sat, 3 Jan 2015 08:29:05 +1100 |
| Subject | Re: Command Line Inputs from Windows |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.17334.1420234154.18130.python-list@python.org> (permalink) |
| Lines | 29 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1420234154 news.xs4all.nl 2850 [2001:888:2000:d::a6]:38626 |
| X-Complaints-To | abuse@xs4all.nl |
| Path | csiph.com!usenet.pasdenom.info!bete-des-vosges.org!feed.ac-versailles.fr!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
| Xref | csiph.com comp.lang.python:83132 |
Show key headers only | View raw
On Sat, Jan 3, 2015 at 6:44 AM, Ken Stewart <gordon_ken_stewart@msn.com> wrote: > This works: > python myScript.py arg1 arg2 arg3 > > This doesn’t work: > myScript.py arg1 arg2 arg3 The latter form is governed by the association. I don't know off-hand where that's set in the registry, but you should be able to poke around in folder settings to find it (but, thank you very much Microsoft, the exact menu path has changed a number of times between Win2K and Win8). On WinXP, if I have my test-box set up correctly, it's View, Folder Options, File Types, select the one for .py, Advanced, select "open", Edit. That'll tell you that the application used is something like: "C:\Python27\python.exe" "%1" %* The %* should mean that arguments get carried through; if that's missing, you won't get any args. I may have some details wrong, and it's likely to be a little different on Win7, but poke around and look for a missing %*. Or, better still, make sure you have the py.exe launcher; then you can have Python scripts request a specific interpreter using a PEP 397 compliant shebang, which will also work nicely on Unix systems. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Command Line Inputs from Windows Chris Angelico <rosuav@gmail.com> - 2015-01-03 08:29 +1100
csiph-web