1.1 --- a/bindings/python/ns3modulegen.py Tue Sep 02 10:12:14 2008 -0700
1.2 +++ b/bindings/python/ns3modulegen.py Tue Sep 02 10:44:28 2008 -0700
1.3 @@ -113,11 +113,17 @@
1.4
1.5 # if GtkConfigStore support is disabled, disable the class wrapper
1.6 if 'DISABLE_GTK_CONFIG_STORE' in os.environ:
1.7 - root_module.classes.remove(root_module['ns3::GtkConfigStore'])
1.8 + try:
1.9 + root_module.classes.remove(root_module['ns3::GtkConfigStore'])
1.10 + except KeyError:
1.11 + pass
1.12
1.13 # if no sqlite, the class SqliteDataOutput is disabled
1.14 if 'SQLITE_STATS' in os.environ:
1.15 - root_module.classes.remove(root_module['ns3::SqliteDataOutput'])
1.16 + try:
1.17 + root_module.classes.remove(root_module['ns3::SqliteDataOutput'])
1.18 + except KeyError:
1.19 + pass
1.20
1.21 root_module.generate(out, '_ns3')
1.22