From: Uwe Hermann Date: Fri, 14 Nov 2014 19:01:12 +0000 (+0100) Subject: bindings: Fix out-of-tree build. X-Git-Tag: libsigrok-0.4.0~771 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b8721d7cf0ee95c51fb6a3d357f371b314b5aeab;p=libsigrok.git bindings: Fix out-of-tree build. This closes #473. --- diff --git a/bindings/cxx/enums.py b/bindings/cxx/enums.py index fe9043c5..bfc06b59 100644 --- a/bindings/cxx/enums.py +++ b/bindings/cxx/enums.py @@ -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)