Commit 0aaeb95e authored by Mathieu Courcelles's avatar Mathieu Courcelles

Fixes media_root

parent 72dc3204
Pipeline #8677664 passed with stage
in 2 minutes and 8 seconds
## Copyright 2013-2015 Mathieu Courcelles
## Copyright 2013-2017 Mathieu Courcelles
## Mike Tyers's lab / IRIC / Universite de Montreal
......@@ -366,8 +366,8 @@ def sequences_alignment(fasta_sequences, pdb, protein_identity):
alignments_list = list()
# Check cache for alignments
PROJECT_DIR = Path(__file__).ancestor(3)
pkl_file = PROJECT_DIR + '/site_media/pdb_alignments/%s-%s.pkl' % (fasta_id, pdb.pk)
PROJECT_DIR = Path(__file__).ancestor(4)
pkl_file = PROJECT_DIR + '/media_root/pdb_alignments/%s-%s.pkl' % (fasta_id, pdb.pk)
if os.path.isfile(pkl_file):
with open(pkl_file, 'rb') as pickle_fh:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment