equal
deleted
inserted
replaced
25 |
25 |
26 import time |
26 import time |
27 import wx |
27 import wx |
28 import subprocess, ctypes |
28 import subprocess, ctypes |
29 from threading import Timer, Lock, Thread, Semaphore |
29 from threading import Timer, Lock, Thread, Semaphore |
30 import os |
30 import os, sys |
31 if os.name == 'posix': |
31 if os.name == 'posix': |
32 from signal import SIGTERM, SIGKILL |
32 from signal import SIGTERM, SIGKILL |
33 |
33 |
34 |
34 |
35 class outputThread(Thread): |
35 class outputThread(Thread): |
84 else: |
84 else: |
85 self.Command.append(word) |
85 self.Command.append(word) |
86 else: |
86 else: |
87 self.Command = Command |
87 self.Command = Command |
88 self.Command_str = subprocess.list2cmdline(self.Command) |
88 self.Command_str = subprocess.list2cmdline(self.Command) |
89 |
89 |
|
90 self.Command = map(lambda x: x.encode(sys.getfilesystemencoding()), |
|
91 self.Command) |
|
92 |
90 self.finish_callback = finish_callback |
93 self.finish_callback = finish_callback |
91 self.no_stdout = no_stdout |
94 self.no_stdout = no_stdout |
92 self.no_stderr = no_stderr |
95 self.no_stderr = no_stderr |
93 self.startupinfo = None |
96 self.startupinfo = None |
94 self.errlen = 0 |
97 self.errlen = 0 |