From 83a1bab088cf63b6a2b65add6989be87c060f5ff Mon Sep 17 00:00:00 2001 From: Sebastien Martini Date: Sun, 6 Feb 2011 19:33:31 +0100 Subject: Disable ctypes when inotify_syscalls is successfully imported. --- python3/pyinotify.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python3') 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 -- cgit v1.2.1