From: Serge Rehbinder Date: Mon, 6 Jun 2016 14:42:20 +0000 (+0200) Subject: Add info option to config command X-Git-Tag: 5.0.0a0~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=88d8f4b9b4a50629d4dc4e1b33a26be0a2559616;p=tools%2Fsat.git Add info option to config command --- diff --git a/commands/config.py b/commands/config.py index e6f59ee..13cc453 100644 --- a/commands/config.py +++ b/commands/config.py @@ -421,7 +421,8 @@ class ConfigManager: def check_path(path, ext=[]): # check if file exists if not os.path.exists(path): - return "'%s'" % path + " " + src.printcolors.printcError(_("** not found")) + return "'%s'" % path + " " + src.printcolors.printcError(_( + "** not found")) # check extension if len(ext) > 0: @@ -648,6 +649,7 @@ def run(args, runner, logger): # case : give information about the product in parameter elif options.info: + src.check_config_has_application(runner.cfg) if options.info in runner.cfg.APPLICATION.products: show_product_info(runner.cfg, options.info, logger) return