bindings/python/ns3modulegen.py
changeset 3639 8e69ebf086f1
parent 3582 96fa2a7b5f88
child 3648 f912b24ddf2d
     1.1 --- a/bindings/python/ns3modulegen.py	Tue Sep 02 10:44:28 2008 -0700
     1.2 +++ b/bindings/python/ns3modulegen.py	Sat Sep 06 19:24:32 2008 +0100
     1.3 @@ -110,16 +110,17 @@
     1.4          mod = __import__(local_module)
     1.5          mod.register_functions(root_module)
     1.6  
     1.7 +    enabled_features = os.environ['NS3_ENABLED_FEATURES'].split(',')
     1.8  
     1.9      # if GtkConfigStore support is disabled, disable the class wrapper
    1.10 -    if 'DISABLE_GTK_CONFIG_STORE' in os.environ:
    1.11 +    if 'GtkConfigStore' not in enabled_features:
    1.12          try:
    1.13              root_module.classes.remove(root_module['ns3::GtkConfigStore'])
    1.14          except KeyError:
    1.15              pass
    1.16  
    1.17      # if no sqlite, the class SqliteDataOutput is disabled
    1.18 -    if 'SQLITE_STATS' in os.environ:
    1.19 +    if 'SqliteDataOutput' not in enabled_features:
    1.20          try:
    1.21              root_module.classes.remove(root_module['ns3::SqliteDataOutput'])
    1.22          except KeyError: