]> sigrok.org Git - libsigrok.git/commitdiff
bindings: Fix out-of-tree build.
authorUwe Hermann <redacted>
Fri, 14 Nov 2014 19:01:12 +0000 (20:01 +0100)
committerUwe Hermann <redacted>
Fri, 14 Nov 2014 19:01:12 +0000 (20:01 +0100)
This closes #473.

bindings/cxx/enums.py

index fe9043c579649752e95ba75c2b4d4db0fd89d818..bfc06b5945fabbc0fd56f9b4931a665211823152 100644 (file)
@@ -67,7 +67,7 @@ for compound in index.findall('compound'):
 
 header = open(os.path.join(outdirname, 'include/libsigrok/enums.hpp'), 'w')
 code = open(os.path.join(outdirname, 'enums.cpp'), 'w')
-swig = open(os.path.join(outdirname, '../swig/enums.i'), 'w')
+swig = open(os.path.join(dirname, '../swig/enums.i'), 'w')
 
 for file in (header, code):
     print("/* Generated file - edit enums.py instead! */", file=file)