bindings/python/ns3modulegen.py
changeset 3420 390db659644b
parent 3409 94ac3e381075
child 3421 b9424c43753d
--- a/bindings/python/ns3modulegen.py	Sat Jul 12 19:33:29 2008 +0100
+++ b/bindings/python/ns3modulegen.py	Sat Jul 12 22:06:15 2008 +0100
@@ -107,6 +107,11 @@
         mod = __import__(local_module)
         mod.register_functions(root_module)
 
+
+    # if GtkConfigStore support is disabled, disable the class wrapper
+    if 'DISABLE_GTK_CONFIG_STORE' in os.environ:
+        root_module.classes.remove(root_module['ns3::GtkConfigStore'])
+
     root_module.generate(out, '_ns3')
 
     out.close()