Problems with using autopackage from python

Neil Munro <[email protected]> Mon, 7 Sep 2009 18:46:26 +0100
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
--0003255596861eb43f0473006f9e
Content-Type: text/plain; charset=UTF-8

Hello        I am writing a software update utility in python and I am
having trouble accessing aspects of autopackage in python. For instance
'package list' returns no output when using functions inside python to get
the output of the program.

Can anyone help me figure out why this is?

The code snippet is as follows:

PROCESS = subprocess.Popen( [ 'package', 'list' ], stdout=subprocess.PIPE
).communicate( )
print PROCESS


Many Thanks
Neil Munro

--0003255596861eb43f0473006f9e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello<div>=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0I am writing a software update u=
tility in python and I am having trouble accessing aspects of autopackage i=
n python. For instance &#39;package list&#39; returns no output when using =
functions inside python to get the output of the program.</div>

<div><br></div><div>Can anyone help me figure out why this is?</div><div><b=
r></div><div>The code snippet is as follows:=C2=A0</div><div><br></div><div=
><div>PROCESS =3D subprocess.Popen( [ &#39;package&#39;, &#39;list&#39; ], =
stdout=3Dsubprocess.PIPE ).communicate( )</div>

<div>print PROCESS</div><div><br></div></div><div><br></div><div>Many Thank=
s</div><div>Neil Munro</div>

--0003255596861eb43f0473006f9e--