Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21558
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <mail@timgolden.me.uk> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.007 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'context': 0.04; 'python': 0.08; 'from:addr:timgolden.me.uk': 0.09; 'from:name:tim golden': 0.09; 'message-id:@timgolden.me.uk': 0.09; '...]': 0.16; 'exe': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'cc:addr:python-list': 0.16; 'subject:Windows': 0.17; 'wrote:': 0.18; 'arguments': 0.18; 'have:': 0.18; 'later': 0.19; 'cc:no real name:2**0': 0.21; 'wrote': 0.21; 'header:In-Reply- To:1': 0.22; '(or': 0.22; 'runs': 0.23; 'fine': 0.24; 'cc:2**0': 0.26; 'code': 0.26; 'script': 0.28; 'print': 0.29; 'cc:addr:python.org': 0.29; 'tjg': 0.30; 'explorer': 0.32; 'patrick': 0.32; 'does': 0.32; 'header:User-Agent:1': 0.33; 'it.': 0.33; 'loop': 0.34; 'occurs': 0.34; 'issue': 0.37; 'run': 0.37; 'but': 0.37; 'entry': 0.37; 'received:192': 0.38; 'open': 0.38; 'files': 0.39; 'missing': 0.40; 'your': 0.61; 'from:addr:mail': 0.64; 'exact': 0.68; 'information:': 0.68; 'vital': 0.77; 'method)': 0.84; 'to:none': 0.93; 'presumably': 0.93 |
| Date | Tue, 13 Mar 2012 10:40:49 +0000 |
| From | Tim Golden <mail@timgolden.me.uk> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 |
| MIME-Version | 1.0 |
| CC | python-list@python.org |
| Subject | Re: Windows Contextmenu |
| References | <E566C160C7EBF84D83DEA407CCBC386702310125@lngvieexcp001.legal.regn.net> |
| In-Reply-To | <E566C160C7EBF84D83DEA407CCBC386702310125@lngvieexcp001.legal.regn.net> |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.610.1331635254.3037.python-list@python.org> (permalink) |
| Lines | 25 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1331635254 news.xs4all.nl 6978 [2001:888:2000:d::a6]:50141 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:21558 |
Show key headers only | View raw
On 13/03/2012 09:41, Szabo, Patrick (LNG-VIE) wrote: > I wrote the following Script which I want to run from the open with > contextmenu in Windows. > > For that purpose I used py2exe to make an exe out of it. [... snip ...] > > Now the script runs fine but I don’t get all arguments from sys.argv. > > No mather how many files I mark in the explorer I only get one as an > argument. You're missing out vital information: * How have you attached this code to the context menu? What was the exact registry entry (or other method) you used? * Does it work as native Python (ie without the py2exe layer)? * Presumably the same issue occurs if you simply have: print sys.argv on its own (ie it's nothing to do with your loop and later code) TJG
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Windows Contextmenu Tim Golden <mail@timgolden.me.uk> - 2012-03-13 10:40 +0000
csiph-web