Re: Problems with using autopackage from python

Eugene Zolenko <[email protected]> Mon, 07 Sep 2009 14:28:53 -0600
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
> 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
>
>   
I don't know python, but I don't think it will perform searching through 
the PATH. Try giving it full path to "package", searching through PATH 
yourself, or coding an equivalent of this:

"$(/bin/which package)" list



---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]