./waf --apiscan creates the bindings dir if it doesn't exist

This commit is contained in:
Gustavo J. A. M. Carneiro
2011-03-08 15:03:02 +00:00
parent e9e8846342
commit abc5d46cd1

View File

@@ -271,6 +271,10 @@ def ns3_module_scan(top_builddir, module_name, headers_map, output_file_name, cf
os.unlink(output_file_name)
except OSError:
pass
try:
os.makedirs(os.path.dirname(output_file_name))
except OSError:
pass
output_file = open(output_file_name, "wt")
output_sink = FileCodeSink(output_file)
module_parser.parse_init([os.path.join(top_builddir, "ns3", "%s-module.h" % module_name)],