summaryrefslogtreecommitdiff
path: root/demo/readdir.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2012-06-27 13:06:42 +0200
committerArmin Rigo <arigo@tunes.org>2012-06-27 13:06:42 +0200
commitc793511cdb71215d4686fa90b276951dc2983d1c (patch)
tree945c8cdd9f140476e4d8d2b32add9fd4fdfe9c99 /demo/readdir.py
parentf7f774aa4c0740bd1a3c67ca01ebddac2695f7f6 (diff)
downloadcffi-c793511cdb71215d4686fa90b276951dc2983d1c.tar.gz
Skip on non-Linux.
Diffstat (limited to 'demo/readdir.py')
-rw-r--r--demo/readdir.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/demo/readdir.py b/demo/readdir.py
index fdf4c55..04e8cd8 100644
--- a/demo/readdir.py
+++ b/demo/readdir.py
@@ -1,7 +1,11 @@
# A Linux-only demo
#
+import sys
from cffi import FFI
+if not sys.platform.startswith('linux'):
+ raise Exception("Linux-only demo")
+
ffi = FFI()
ffi.cdef("""