[DEV] update the description missing

This commit is contained in:
Edouard DUPIN 2013-12-23 22:04:35 +01:00
parent 43c023d951
commit 1a112e4000
2 changed files with 8 additions and 2 deletions

View File

@ -33,7 +33,8 @@ def usage():
listOfAllModule = monkModule.list_all_module_with_desc()
for mod in listOfAllModule:
print " " + mod[0] + " / " + mod[0] + "-clean"
print " " + mod[1]
if mod[1] != "":
print " " + mod[1]
print " ex: " + sys.argv[0] + " all"
exit(0)

View File

@ -324,7 +324,10 @@ def import_path(path):
debug.debug("integrate module: '" + moduleName + "' from '" + os.path.join(root, filename) + "'")
theModule = __import__(__startModuleName + moduleName)
tmpElement = theModule.create()
tmpdesc = theModule.get_desc()
try:
tmpdesc = theModule.get_desc()
except:
tmpdesc = ""
if (tmpElement == None) :
debug.warning("Request load module '" + name + "' not define for this platform")
moduleList.append({"name":moduleName, "path":os.path.join(root, filename), "node":tmpElement, "desc":tmpdesc})
@ -350,4 +353,6 @@ def list_all_module_with_desc():
tmpList.append([mod["name"], mod["desc"]])
return tmpList
def get_link_type(type):
return ""