commit
3d75b210b5
1 changed files with 4 additions and 4 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue