Skip to content

Commit

Permalink
Update path to template directory to include CRISPRessoReports
Browse files Browse the repository at this point in the history
  • Loading branch information
Colelyman authored and Snicker7 committed Sep 13, 2022
1 parent bbd49ed commit 480060c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRISPRessoReport.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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':
Expand Down

0 comments on commit 480060c

Please sign in to comment.