Show More
@@ -18,6 +18,7 b' __docformat__ = "restructuredtext en"' | |||
|
18 | 18 | from killableprocess import Popen, PIPE |
|
19 | 19 | from threading import Thread |
|
20 | 20 | from time import sleep |
|
21 | import os | |
|
21 | 22 | |
|
22 | 23 | class PipedProcess(Thread): |
|
23 | 24 | """ Class that encapsulates process execution by using callbacks for |
@@ -47,7 +48,10 b' class PipedProcess(Thread):' | |||
|
47 | 48 | def run(self): |
|
48 | 49 | """ Start the process and hook up the callbacks. |
|
49 | 50 | """ |
|
51 | env = os.environ | |
|
52 | env['TERM'] = 'xterm' | |
|
50 | 53 | process = Popen((self.command_string + ' 2>&1', ), shell=True, |
|
54 | env=env, | |
|
51 | 55 | universal_newlines=True, |
|
52 | 56 | stdout=PIPE, stdin=PIPE, ) |
|
53 | 57 | self.process = process |
General Comments 0
You need to be logged in to leave comments.
Login now