Re: alternative to hardcoding system util paths

2010-09-16 Thread Daniel da Silva
You could also use the subprocess module, which like os.system, doesn't care about the absolute path of the executable. import subprocess p = subprocess.Popen(['aptitude', 'search', 'gnome']) p.wait() On Thu, Sep 16, 2010 at 7:07 PM, Cosme Domínguez wrote: > 2010/9/17 Stephen Burke : > > I'm wr

Re: alternative to hardcoding system util paths

2010-09-16 Thread Cosme Domínguez
2010/9/17 Stephen Burke : > I'm writing a python script and I'm using aptitude and update-grub in > the script.  Currently I just use the abolute path to the bins ie. > /usr/bin/aptitude.  Ultimately I'd like to package it and distribute > it as a deb.  What's the recommended way to get these paths

extending apport/problem_report format?

2010-09-16 Thread Edwin Grubbs
Hi, Launchpad.net is looking into whether to use the problem_report python module to store website errors or even to use the apport python module to help collect system data for the problem report. Currently, each exception is stored in a separate "oops" file with a bunch of extra data, such as th

alternative to hardcoding system util paths

2010-09-16 Thread Stephen Burke
I'm writing a python script and I'm using aptitude and update-grub in the script. Currently I just use the abolute path to the bins ie. /usr/bin/aptitude. Ultimately I'd like to package it and distribute it as a deb. What's the recommended way to get these paths so they will work on any user's m

Re: An Open Letter to Ubuntu Developers

2010-09-16 Thread Roderick B. Greening
> On 16 September 2010 13:29, Jan Claeys wrote: > > Op maandag 06-09-2010 om 17:05 uur [tijdzone +0100], schreef Tony > > > > Atkinson: > >> 3) Link GUI & CLI operations using common syntax > >> > >> I'm in two minds about including this, > >> as this is not a usual use-case for the majority of

Re: An Open Letter to Ubuntu Developers

2010-09-16 Thread Fergal Daly
On 16 September 2010 13:29, Jan Claeys wrote: > Op maandag 06-09-2010 om 17:05 uur [tijdzone +0100], schreef Tony > Atkinson: >> 3) Link GUI & CLI operations using common syntax >> >> I'm in two minds about including this, >> as this is not a usual use-case for the majority of people >> but I'd lo

Re: An Open Letter to Ubuntu Developers

2010-09-16 Thread Jan Claeys
Op maandag 06-09-2010 om 17:05 uur [tijdzone +0100], schreef Tony Atkinson: > 3) Link GUI & CLI operations using common syntax > > I'm in two minds about including this, > as this is not a usual use-case for the majority of people > but I'd love for all GUI applications to be invokable via the CLI