Lines 135-144
Link Here
|
135 |
if not remote_cmd: return Globals.local_connection |
135 |
if not remote_cmd: return Globals.local_connection |
136 |
|
136 |
|
137 |
Log("Executing " + remote_cmd, 4) |
137 |
Log("Executing " + remote_cmd, 4) |
138 |
if os.name == "nt": |
138 |
if map(int, sys.version.split()[0].split('.')[:2]) >= [2, 6]: |
139 |
import subprocess |
139 |
import subprocess |
140 |
try: |
140 |
try: |
141 |
process = subprocess.Popen(remote_cmd, shell=False, bufsize=0, |
141 |
process = subprocess.Popen(remote_cmd, shell=True, bufsize=0, |
142 |
stdin=subprocess.PIPE, |
142 |
stdin=subprocess.PIPE, |
143 |
stdout=subprocess.PIPE) |
143 |
stdout=subprocess.PIPE) |
144 |
(stdin, stdout) = (process.stdin, process.stdout) |
144 |
(stdin, stdout) = (process.stdin, process.stdout) |