summaryrefslogtreecommitdiff
path: root/python3
diff options
context:
space:
mode:
Diffstat (limited to 'python3')
-rwxr-xr-xpython3/pyinotify.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python3/pyinotify.py b/python3/pyinotify.py
index 720c2b9..0186e3f 100755
--- a/python3/pyinotify.py
+++ b/python3/pyinotify.py
@@ -85,6 +85,9 @@ except ImportError:
try:
import inotify_syscalls
+ # As soon as inotify_syscalls are used make sure ctypes won't
+ # get inadvertently be used instead.
+ ctypes = None
except ImportError:
inotify_syscalls = None