diff options
| author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-09-25 00:27:32 -0400 |
|---|---|---|
| committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-09-25 14:36:30 -0400 |
| commit | 5be675eb0332ccf660a81df51701146997ef9fcb (patch) | |
| tree | 22ff68fa1ea7b92a263b46449f306e2e8f12bc4a /SConstruct | |
| parent | 45a9a680a3cf54d4f43c46c3ec43a108ee62b834 (diff) | |
| download | redot-engine-5be675eb0332ccf660a81df51701146997ef9fcb.tar.gz | |
Use BoolVariable for module options.
Diffstat (limited to 'SConstruct')
| -rw-r--r-- | SConstruct | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct index 1d7b91e907..4fd1b86f54 100644 --- a/SConstruct +++ b/SConstruct @@ -189,7 +189,7 @@ for k in platform_opts.keys(): opts.Add(o) for x in module_list: - opts.Add('module_' + x + '_enabled', "Enable module '" + x + "' (yes/no)", "yes") + opts.Add(BoolVariable('module_' + x + '_enabled', "Enable module '%s'" % (x, ), True)) opts.Update(env_base) # update environment Help(opts.GenerateHelpText(env_base)) # generate help @@ -359,7 +359,7 @@ if selected_platform in platform_list: env.doc_class_path={} for x in module_list: - if env['module_' + x + '_enabled'] != "yes": + if not env['module_' + x + '_enabled']: continue tmppath = "./modules/" + x sys.path.append(tmppath) |
