python syntax

Guilherme Polo ggpolo at gmail.com
Mon Jan 7 08:33:36 EST 2008


2008/1/7, mpho raborife <mraborife at yahoo.com>:
> Thanks. So could you please help me with this one:
> subprocess.Popen(["gmmscore", "-i", Input, "-l", List, "-t", modeltype,
> "-m", mixture, "-d", dimension, "-v", vfloor, "-n", number, "-r", results])

Only if you tell the problem.
But I guess that you maybe passed arguments that aren't strings, so be
sure to convert those arguments to strings. os.path.join in the
previous situation didn't need any conversion because it already
returns a string.

>
> Guilherme Polo <ggpolo at gmail.com> wrote:
>  2008/1/7, mpho raborife :
> > Please help me get this syntax right:
> >
> > os.system("HCopy -T 1 -C" 'os.path.join(conf_dir, "/hcopy.conf")' "-S"
> > 'os.path.join(list_dir, "hcopy_list.txt")')
> >
>
> import os
> import subprocess
>
> subprocess.Popen(["HCopy", "-T", "1", "-C", os.path.join(conf_dir,
> "hcopy.conf"),
>  "-S", os.path.join(list_dir, "hcopy_list.txt")])
>
> >
> >
> > ________________________________
> > Looking for last minute shopping deals? Find them fast with Yahoo! Search.
> >
> >
> > --
> > http://mail.python.org/mailman/listinfo/python-list
> >
>
>
> --
> -- Guilherme H. Polo Goncalves
>
>
>
>  ________________________________
> Looking for last minute shopping deals? Find them fast with Yahoo! Search.
>
>


-- 
-- Guilherme H. Polo Goncalves



More information about the Python-list mailing list