From: Cédric Aguerre Date: Wed, 10 Aug 2016 16:35:50 +0000 (+0200) Subject: If cfg parsing fails, do not try to parse sh file X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c96f09ddddcca1d7d79d49217de200ced41d307a;p=modules%2Fyacs.git If cfg parsing fails, do not try to parse sh file --- 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: