Re: Python popen weirdness

Date : Tue, 27 May 2008 18:48:42 +0100
To : xsi(at)Softimage.COM
From : "Alan Jones" <skyphyr(at)gmail.com>
Subject : Re: Python popen weirdness
PEBKAC. Nothing to see here.

On Tue, May 27, 2008 at 6:15 PM, Alan Jones <skyphyr(at)gmail.com> wrote:
> Hi All,
>
> I've got a python module I call from within XSI that executes a batch
> script by calling os.popen
>
> process = os.popen(batchFilename)
>
> This doesn't actually execute unless I call process.readlines() -
> which would be fine, but then it executes twice.
>
> I can't get it to execute just once - even tried a single line
> process = os.popen(batchFilename).readlines()
>
> Anyone encountered this and know a fix. This will really shock people,
> but this is on win32.
>
> Cheers,
>
> Alan.
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.