util/ProcessLogger.py
changeset 1732 94ffe74e6895
parent 1730 64d8f52bc8c8
child 1736 7e61baa047f0
equal deleted inserted replaced
1731:6ebd9c40b2be 1732:94ffe74e6895
    20 #
    20 #
    21 # You should have received a copy of the GNU General Public License
    21 # You should have received a copy of the GNU General Public License
    22 # along with this program; if not, write to the Free Software
    22 # along with this program; if not, write to the Free Software
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    24 
    24 
       
    25 import os
       
    26 import sys
    25 import time
    27 import time
    26 import wx
    28 import wx
    27 import subprocess, ctypes
    29 import subprocess
       
    30 import ctypes
    28 from threading import Timer, Lock, Thread, Semaphore
    31 from threading import Timer, Lock, Thread, Semaphore
    29 import os, sys
       
    30 if os.name == 'posix':
    32 if os.name == 'posix':
    31     from signal import SIGTERM, SIGKILL
    33     from signal import SIGTERM, SIGKILL
    32 
    34 
    33 
    35 
    34 class outputThread(Thread):
    36 class outputThread(Thread):