diff options
author | Sebastien Martini <seb@dbzteam.org> | 2011-02-06 19:33:31 +0100 |
---|---|---|
committer | Sebastien Martini <seb@dbzteam.org> | 2011-02-06 19:33:31 +0100 |
commit | 83a1bab088cf63b6a2b65add6989be87c060f5ff (patch) | |
tree | 3c86984fcf4d554e4c16c8d1beced7869385d9b7 /python2 | |
parent | 7afc73252ea1de3c5bb61eb3803126def0048dd0 (diff) | |
download | pyinotify-83a1bab088cf63b6a2b65add6989be87c060f5ff.tar.gz |
Disable ctypes when inotify_syscalls is successfully imported.
Diffstat (limited to 'python2')
-rwxr-xr-x | python2/pyinotify.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python2/pyinotify.py b/python2/pyinotify.py index 6b4c72a..639fa18 100755 --- a/python2/pyinotify.py +++ b/python2/pyinotify.py @@ -83,6 +83,9 @@ except ImportError: try: import inotify_syscalls + # As soon as inotify_syscalls are used make sure ctypes won't + # ger inadvertently be used instead. + ctypes = None except ImportError: inotify_syscalls = None |