226 rhost = "localhost" |
226 rhost = "localhost" |
227 if rexec: |
227 if rexec: |
228 args = Utilities.parseOptionString(rexec) + \ |
228 args = Utilities.parseOptionString(rexec) + \ |
229 [rhost, interpreter, debugClient, |
229 [rhost, interpreter, debugClient, |
230 noencoding, str(port), redirect, ipaddr] |
230 noencoding, str(port), redirect, ipaddr] |
231 args[0] = Utilities.getExecutablePath(args[0]) |
231 if Utilities.isWindowsPlatform(): |
|
232 if not os.path.splitext(args[0])[1]: |
|
233 for ext in [".exe", ".com", ".cmd", ".bat"]: |
|
234 prog = Utilities.getExecutablePath(args[0] + ext) |
|
235 if prog: |
|
236 args[0] = prog |
|
237 break |
|
238 else: |
|
239 args[0] = Utilities.getExecutablePath(args[0]) |
232 process = self.__startProcess(args[0], args[1:], |
240 process = self.__startProcess(args[0], args[1:], |
233 workingDir=workingDir) |
241 workingDir=workingDir) |
234 if process is None: |
242 if process is None: |
235 E5MessageBox.critical( |
243 E5MessageBox.critical( |
236 None, |
244 None, |
379 rhost = "localhost" |
387 rhost = "localhost" |
380 if rexec: |
388 if rexec: |
381 args = Utilities.parseOptionString(rexec) + \ |
389 args = Utilities.parseOptionString(rexec) + \ |
382 [rhost, interpreter, debugClient, noencoding, |
390 [rhost, interpreter, debugClient, noencoding, |
383 str(port), redirect, ipaddr] |
391 str(port), redirect, ipaddr] |
384 args[0] = Utilities.getExecutablePath(args[0]) |
392 if Utilities.isWindowsPlatform(): |
|
393 if not os.path.splitext(args[0])[1]: |
|
394 for ext in [".exe", ".com", ".cmd", ".bat"]: |
|
395 prog = Utilities.getExecutablePath(args[0] + ext) |
|
396 if prog: |
|
397 args[0] = prog |
|
398 break |
|
399 else: |
|
400 args[0] = Utilities.getExecutablePath(args[0]) |
385 process = self.__startProcess(args[0], args[1:], |
401 process = self.__startProcess(args[0], args[1:], |
386 workingDir=workingDir) |
402 workingDir=workingDir) |
387 if process is None: |
403 if process is None: |
388 E5MessageBox.critical( |
404 E5MessageBox.critical( |
389 None, |
405 None, |