From c96f09ddddcca1d7d79d49217de200ced41d307a Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Wed, 10 Aug 2016 18:35:50 +0200 Subject: [PATCH] If cfg parsing fails, do not try to parse sh file --- bin/salomeContext.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/salomeContext.py b/bin/salomeContext.py index 2bed90404..2b74009bc 100644 --- a/bin/salomeContext.py +++ b/bin/salomeContext.py @@ -294,7 +294,8 @@ class SalomeContext: file_base = os.path.basename(filename) base_no_ext, ext = os.path.splitext(file_base) sh_file = os.path.join(file_dir, base_no_ext+'.sh') - if ext == ".cfg" and os.path.isfile(sh_file): + #if ext == ".cfg" and os.path.isfile(sh_file): + if False: msg += "Found similar %s file; trying to parse this one instead..."%(base_no_ext+'.sh') temp = tempfile.NamedTemporaryFile(suffix='.cfg') try: -- 2.39.2