From 579d65419a12064bd004ee04c829550c6b450db7 Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Tue, 10 Jan 2017 09:48:23 +0100 Subject: [PATCH] prevent a job config file not to end by .pyconf --- commands/jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.2