From 0ef0690969049844a1ebac4dcdbff6ff2e935aca Mon Sep 17 00:00:00 2001 From: Gabriel Arrobo Date: Wed, 17 Mar 2021 11:54:56 -0700 Subject: [PATCH] build (fixes #360): Search relative path for bindings in src and contrib dir --- bindings/python/wscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bindings/python/wscript b/bindings/python/wscript index a9994e058..ff0fed40f 100644 --- a/bindings/python/wscript +++ b/bindings/python/wscript @@ -390,6 +390,8 @@ class apiscan_task(Task.Task): def run(self): self.inputs = [self.bld.bldnode.find_resource("ns3/{0}-module.h".format(self.module))] self.outputs = [self.bld.srcnode.find_resource("src/{}/bindings/modulegen__{}.py".format(self.module, self.target))] + if self.outputs[0] is None: + self.outputs = [self.bld.srcnode.find_resource("contrib/{}/bindings/modulegen__{}.py".format(self.module, self.target))] top_builddir = self.bld.bldnode.abspath() module_path = get_module_path(self.bld, self.module) headers_map = get_headers_map(self.bld)