Fix exec_pg_command_pipe to work on windows for issue1405

This commit is contained in:
Cédric Krier committed 2010-02-03 17:36:44 +01:00
1 parent a8c374617e
commit dbd73db28b
1 file changed
+2 -4
+2 -4
View File
@@ -67,10 +67,8 @@ def exec_pg_command_pipe(name, *args):
child_env = dict(os.environ)
if CONFIG['db_password']:
child_env['PGPASSWORD'] = CONFIG['db_password']
pipe = subprocess.Popen(cmd, shell=True,
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
close_fds=True,
env=child_env)
pipe = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, env=child_env)
return pipe
def exec_command_pipe(name, *args):