From 9d3900c7ee39df5fbfc16ca955589ea02b479611 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Wed, 27 Jan 2016 17:15:57 +0100 Subject: [PATCH] qp_module is now case insensitive --- configure | 2 +- scripts/module/qp_module.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configure b/configure index a6c5bc2e..2344264a 100755 --- a/configure +++ b/configure @@ -533,7 +533,7 @@ def recommendation(): print " source {0}".format(path) print "" print "Then, install the modules you want to install using :" - print " qp_install_module.py " + print " qp_module.py" print "" print "Finally :" print " ninja" diff --git a/scripts/module/qp_module.py b/scripts/module/qp_module.py index 3eda69f3..63649df5 100755 --- a/scripts/module/qp_module.py +++ b/scripts/module/qp_module.py @@ -175,7 +175,11 @@ def main(arguments): d_child = d_local.copy() d_child.update(d_plugin) - l_name = arguments[""] + normalize_case = {} + for name in d_local.keys() + d_plugin.keys(): + normalize_case [ name.lower() ] = name + + l_name = [ normalize_case[name.lower()] for name in arguments[""] ] for name in l_name: if name in d_local: @@ -206,6 +210,7 @@ def main(arguments): raise print "[ OK ]" + print "" print "You can now compile as usual" print "`cd {0} ; ninja` for exemple".format(QP_ROOT) print " or --in developement mode-- you can cd in a directory and compile here"