[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: python syntax

Guilherme Polo

1/7/2008 1:34:00 PM

2008/1/7, mpho raborife <mraborife@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@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/p...
> >
>
>
> --
> -- Guilherme H. Polo Goncalves
>
>
>
> ________________________________
> Looking for last minute shopping deals? Find them fast with Yahoo! Search.
>
>


--
-- Guilherme H. Polo Goncalves