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

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2011-03-08 15:03:02 +00:00
1 parent be20acaee7
commit 757f390f7e
1 file changed
+4
+4
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)],