Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: 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; 'args': 0.05; 'parameter': 0.05; 'received:verizon.net': 0.07; 'terry': 0.07; 'python': 0.08; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:access': 0.09; 'am,': 0.12; 'reedy': 0.16; 'subject:issues': 0.16; 'win7': 0.16; 'wrote:': 0.16; 'help.': 0.19; 'jan': 0.19; 'seems': 0.20; 'header:In-Reply-To:1': 0.22; 'optional': 0.23; 'suggestion': 0.26; '(in': 0.26; "i'm": 0.27; 'right.': 0.28; 'fixed': 0.29; 'fix': 0.29; 'second': 0.29; 'to:addr:python-list': 0.33; 'header:User-Agent:1': 0.34; 'header:X-Complaints-To:1': 0.35; '(with': 0.35; 'element': 0.37; 'could': 0.38; 'received:org': 0.38; 'some': 0.38; 'subject:: ': 0.39; 'header:Mime-Version:1': 0.39; 'subject:with': 0.39; 'why': 0.39; 'to:addr:python.org': 0.39; "it's": 0.40; 'took': 0.63; 'cause': 0.67; 'glad': 0.70; 'become': 0.71; 'automatic': 0.72; 'golden': 0.73; 'obvious,': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: spawnl issues with Win 7 access rights Date: Thu, 27 Oct 2011 15:53:30 -0400 References: <4308935.65.1319502062676.JavaMail.geo-discussion-forums@prfq1> <047ec741-9164-4b0e-bb24-f71e3ab1e39b@gk10g2000vbb.googlegroups.com> <4EA6A950.6090706@timgolden.me.uk> <4EA81B72.7040008@timgolden.me.uk> <98460dba-9e08-4d1a-8bf6-4e8fdbea2d0c@19g2000yqk.googlegroups.com> <4EA93421.1090905@timgolden.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-74-109-121-73.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 In-Reply-To: <4EA93421.1090905@timgolden.me.uk> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1319745309 news.xs4all.nl 6989 [2001:888:2000:d::a6]:40757 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15056 On 10/27/2011 6:36 AM, Tim Golden wrote: > On 27/10/2011 11:27, Propad wrote: >> the suggestion to add the optional second parameter fixed the problem, >> spawnl now works on the Win 7 computer I'm responsible for (with >> Python 2.2). So the suggested cause seems to be right. > > FWIW, although it's not obvious, the args parameter to spawnl > is intended to become the sys.args (in Python terms) of the > newly-spawned process. Which is why the first element is expected > to be the name of the process. It took me some time to realise > this myself :) > > Anyway, glad we could be of help. Can we make this fix automatic for Win7 to fix #8036? -- Terry Jan Reedy