]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
prevent a job config file not to end by .pyconf
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 10 Jan 2017 08:48:23 +0000 (09:48 +0100)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 10 Jan 2017 08:48:23 +0000 (09:48 +0100)
commands/jobs.py

index 6c26ea688ef7c91872bb23b84de043d035805909..a06f8eeae04c55516723ace9acc3d98a60ab5503 100644 (file)
@@ -1615,7 +1615,7 @@ class Gui(object):
 def get_config_file_path(job_config_name, l_cfg_dir):
     found = False
     file_jobs_cfg = None
-    if os.path.exists(job_config_name):
+    if os.path.exists(job_config_name) and job_config_name.endswith(".pyconf"):
         found = True
         file_jobs_cfg = job_config_name
     else: