Calls are not executed with the psql command, they are done with psycopg2. 

You could try a subprocess.POpen call:

import subprocess

...

sp = subprocess.POpen("psql {insert remainder of command line here}", 
shell=True)

For more on the options of the subprocess 
module: http://docs.python.org/library/subprocess.html



Reply via email to