10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-07-22 10:47:33 +02:00

qp_module is now case insensitive

This commit is contained in:
Anthony Scemama 2016-01-27 17:15:57 +01:00
parent 434c1d1e61
commit 9d3900c7ee
2 changed files with 7 additions and 2 deletions

2
configure vendored
View File

@ -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"

View File

@ -175,7 +175,11 @@ def main(arguments):
d_child = d_local.copy()
d_child.update(d_plugin)
l_name = arguments["<name>"]
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["<name>"] ]
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"