]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
If cfg parsing fails, do not try to parse sh file
authorCédric Aguerre <cedric.aguerre@edf.fr>
Wed, 10 Aug 2016 16:35:50 +0000 (18:35 +0200)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Wed, 10 Aug 2016 16:35:50 +0000 (18:35 +0200)
bin/salomeContext.py

index 2bed9040420850b03b6122bada1bef81d7837802..2b74009bc71b286e5d4a9d247d8f31253e19dd53 100644 (file)
@@ -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: