build: Enabled to run python scripts located in the contrib directory

This commit is contained in:
Gabriel Arrobo
2021-04-07 05:25:39 +00:00
committed by Tom Henderson
parent 0ef0690969
commit b2b1b08bf2
2 changed files with 9 additions and 3 deletions

View File

@@ -251,7 +251,7 @@ def ns3_module_scan(top_builddir, module_name, headers_map, output_file_name, cf
output_file = open(output_file_name, "wt")
output_sink = FileCodeSink(output_file)
# if there exists a scan-header.h file in src/<module>/bindings,
# if there exists a scan-header.h file in src/<module>/bindings or contrib/<module>/bindings,
# scan it, otherwise scan ns3/xxxx-module.h.
scan_header = os.path.join(os.path.dirname(output_file_name), "scan-header.h")
if not os.path.exists(scan_header):