diff --git a/SConstruct b/SConstruct index 190ef93b9d4..705ef4881ce 100644 --- a/SConstruct +++ b/SConstruct @@ -193,11 +193,11 @@ for x in module_list: tmppath = "./modules/" + x sys.path.append(tmppath) try: - import config - if (not config.is_enabled()): - module_enabled = False + import config + if (not config.is_enabled()): + module_enabled = False except: - pass + pass sys.path.remove(tmppath) opts.Add(BoolVariable('module_' + x + '_enabled', "Enable module '%s'" % (x, ), module_enabled))