Hello all, thank you for your answer.
I resolve that problem in this way import os cmd='dir/sh2pgsql.exe ' + option + shpafile + ' > '+ sqlfile os.system(cmd) option - one of the options accepted by shp2pgsql, it can be ommited, by default is '-c' shpafile - full path of shape file sqlfile - full path of sql file that will be written Regards, Ervin _______________________________________________ DB-SIG maillist - DB-SIG@python.org http://mail.python.org/mailman/listinfo/db-sig