|
|
@ -96,7 +96,8 @@ class FormConfig(object): |
|
|
|
proc = subprocess.Popen(form.script, shell=True, |
|
|
|
proc = subprocess.Popen(form.script, shell=True, |
|
|
|
stdout=stdout, |
|
|
|
stdout=stdout, |
|
|
|
stderr=stderr, |
|
|
|
stderr=stderr, |
|
|
|
env=env) |
|
|
|
env=env, |
|
|
|
|
|
|
|
close_fds=True) |
|
|
|
stdout, stderr = proc.communicate(input) |
|
|
|
stdout, stderr = proc.communicate(input) |
|
|
|
return proc.returncode |
|
|
|
return proc.returncode |
|
|
|
else: |
|
|
|
else: |
|
|
@ -104,7 +105,8 @@ class FormConfig(object): |
|
|
|
stdin=subprocess.PIPE, |
|
|
|
stdin=subprocess.PIPE, |
|
|
|
stdout=subprocess.PIPE, |
|
|
|
stdout=subprocess.PIPE, |
|
|
|
stderr=subprocess.PIPE, |
|
|
|
stderr=subprocess.PIPE, |
|
|
|
env=env) |
|
|
|
env=env, |
|
|
|
|
|
|
|
close_fds=True) |
|
|
|
stdout, stderr = proc.communicate() |
|
|
|
stdout, stderr = proc.communicate() |
|
|
|
return { |
|
|
|
return { |
|
|
|
'stdout': stdout, |
|
|
|
'stdout': stdout, |
|
|
|