From: Serge Rehbinder Date: Tue, 10 Jan 2017 08:48:23 +0000 (+0100) Subject: prevent a job config file not to end by .pyconf X-Git-Tag: 5.0.0a1~38^2~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=579d65419a12064bd004ee04c829550c6b450db7;p=tools%2Fsat.git prevent a job config file not to end by .pyconf --- diff --git a/commands/jobs.py b/commands/jobs.py index 6c26ea6..a06f8ee 100644 --- a/commands/jobs.py +++ b/commands/jobs.py @@ -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: