Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.040 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'content- type:multipart/signed': 0.09; 'subject:access': 0.09; 'subprocess': 0.09; 'content-type:application/pgp-signature': 0.16; 'filename:fname piece:asc': 0.16; 'filename:fname piece:signature': 0.16; 'filename:fname:signature.asc': 0.16; 'runs.': 0.16; 'subject:subprocess': 0.16; "tim's": 0.16; 'argument': 0.16; 'subject:Windows': 0.20; 'header:In-Reply-To:1': 0.21; 'seems': 0.21; "wasn't": 0.22; 'handles': 0.26; 'windows': 0.26; "i'm": 0.27; 'quoting': 0.30; 'url:key': 0.30; 'to:addr :python-list': 0.33; 'thank': 0.35; 'all.': 0.35; 'header:User- Agent:1': 0.35; 'gnu': 0.35; 'quite': 0.36; 'list:': 0.36; 'think': 0.38; 'but': 0.38; 'subject:: ': 0.38; 'message:': 0.39; 'called': 0.39; 'to:addr:python.org': 0.39; 'your': 0.60; 'header :Message-Id:1': 0.62; 'address': 0.62; 'closed': 0.62; 'url:net': 0.63; 'header:Reply-To:1': 0.72; 'reply-to:no real name:2**0': 0.72; 'night': 0.77; 'trick.': 0.84 From: Claudiu Nicolaie CISMARU Organization: virtuaMAGIC To: python-list@python.org Subject: Re: File access denied after subprocess completion on Windows platform Date: Tue, 24 May 2011 20:17:25 +0300 User-Agent: KMail/1.13.7 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.3; i686; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1472902.poNUEluxlu"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: claudiu@virtuamagic.com 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: 43 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1306257450 news.xs4all.nl 49183 [::ffff:82.94.164.166]:50414 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6160 --nextPart1472902.poNUEluxlu Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm quoting a message that I received on personal address and wasn't=20 sent to list: >=20 > try adding argument close_fds=3DTrue to subprocess.Popen >=20 > harish >=20 And Tim's message: > It's not quite clear from your description above whether you > can be sure that the called subprocess has closed all its handles > by the time the os.rename runs. Seems that close_fds did the trick. Anyway, I read that description on=20 the documentation last night but I think I was so tired that I=20 understood that in Windows has no effect... :) Thank you, all. =2D-=20 Claudiu Nicolaie CISMARU GNU GPG Key: http://claudiu.targujiu.net/key.gpg T: +40 755 135455 E: claudiu@virtuamagic.com, claudiu.cismaru@gmail.com --nextPart1472902.poNUEluxlu Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEABECAAYFAk3b6CcACgkQhU2qCxfP7Cpt0ACgv3TJ06uM32/Y60G8ZP8Cl9xY wSQAn0K2+tP6IECpkdeHUDa01AapUYjt =ZYPP -----END PGP SIGNATURE----- --nextPart1472902.poNUEluxlu--