From 480060c73799fe4f809efb841997139d71b8caf4 Mon Sep 17 00:00:00 2001 From: Cole Lyman Date: Thu, 30 Jun 2022 00:05:40 -0600 Subject: [PATCH] Update path to template directory to include `CRISPRessoReports` --- CRISPRessoReport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRISPRessoReport.py b/CRISPRessoReport.py index 1cc809b2..83d94ed6 100644 --- a/CRISPRessoReport.py +++ b/CRISPRessoReport.py @@ -162,7 +162,7 @@ def make_report(run_data, crispresso_report_file, crispresso_folder, _ROOT, web_ 'crispresso_data_path': crispresso_data_path, } - j2_env = Environment(loader=FileSystemLoader(os.path.join(_ROOT, 'templates'))) + j2_env = Environment(loader=FileSystemLoader(os.path.join(_ROOT, 'CRISPRessoReports', 'templates'))) # dest_dir = os.path.dirname(crispresso_report_file) # shutil.copy2(os.path.join(_ROOT,'templates','CRISPResso_justcup.png'),dest_dir) @@ -473,7 +473,7 @@ def fill_default(dictionary, key, default_type=list): dictionary[key] = default_type() j2_env = Environment( - loader=FileSystemLoader(os.path.join(_ROOT, 'templates')), + loader=FileSystemLoader(os.path.join(_ROOT, 'CRISPRessoReports', 'templates')), ) j2_env.filters['dirname'] = dirname if crispresso_tool == 'batch':