Show More
@@ -1,5 +1,8 b'' | |||
|
1 | 1 | # Standard library imports. |
|
2 | import ctypes | |
|
2 | try: | |
|
3 | import ctypes | |
|
4 | except: | |
|
5 | ctypes = None | |
|
3 | 6 | import os |
|
4 | 7 | import platform |
|
5 | 8 | import time |
@@ -54,6 +57,8 b' class ParentPollerWindows(Thread):' | |||
|
54 | 57 | """ |
|
55 | 58 | assert(interrupt_handle or parent_handle) |
|
56 | 59 | super(ParentPollerWindows, self).__init__() |
|
60 | if ctypes is None: | |
|
61 | raise ImportError("ParentPollerWindows requires ctypes") | |
|
57 | 62 | self.daemon = True |
|
58 | 63 | self.interrupt_handle = interrupt_handle |
|
59 | 64 | self.parent_handle = parent_handle |
General Comments 0
You need to be logged in to leave comments.
Login now