diff --git a/demo/python/mmap.py b/demo/python/mmap.py index 786f8eb..ebab9d7 100755 --- a/demo/python/mmap.py +++ b/demo/python/mmap.py @@ -18,9 +18,12 @@ #set the paths so python can find the comedi module -import sys, os, string, struct, time, mmap, array -sys.path.append('./build/lib.linux-i586-2.1') +import sys, os, string, struct, time, array +sys.path.append(sys.path.pop(0)) +import mmap + +sys.path.append('./build/lib.linux-i586-2.1') import comedi as c #open a comedi device