first patch from debian

parent cd05fff7
......@@ -135,10 +135,10 @@ def init_connection(remote_cmd):
if not remote_cmd: return Globals.local_connection
Log("Executing " + remote_cmd, 4)
if os.name == "nt":
if map(int, sys.version.split()[0].split('.')[:2]) >= [2, 6] or os.name == "nt":
import subprocess
try:
process = subprocess.Popen(remote_cmd, shell=False, bufsize=0,
process = subprocess.Popen(remote_cmd, shell=True, bufsize=0,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE)
(stdin, stdout) = (process.stdin, process.stdout)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment