author | Gustavo J. A. M. Carneiro <gjc@inescporto.pt> |
Tue, 08 Mar 2011 15:03:02 +0000 | |
changeset 6877 | 826f20022032 |
parent 6876 | 9ac9bd55541d |
child 6878 | 11a009e0c08e |
--- a/bindings/python/ns3modulescan-modular.py Tue Mar 08 15:02:28 2011 +0000 +++ b/bindings/python/ns3modulescan-modular.py Tue Mar 08 15:03:02 2011 +0000 @@ -271,6 +271,10 @@ 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)],