Ervin Ramonllari wrote:
> import os
> os.execv('mydir/shp2pgsql.exe', args)
> 
> *args is a list of arguments, the same as I pass them using cmd.exe
 
>From the docs on os.execv:

    "In either case, the arguments to the child process
     should start with the name of the command being run,
     but this is not enforced."

Are you doing that? e.g.:

    cmd = 'mydir/shp2pgsql.exe'
    os.execv(cmd, [cmd] + args)


Robert Brewer
[EMAIL PROTECTED]
_______________________________________________
DB-SIG maillist  -  DB-SIG@python.org
http://mail.python.org/mailman/listinfo/db-sig

Reply via email to