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
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
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
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
> 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
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
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