aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/db')
-rw-r--r--gn3/db/datasets.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gn3/db/datasets.py b/gn3/db/datasets.py
index 8839f2e..28fe0fe 100644
--- a/gn3/db/datasets.py
+++ b/gn3/db/datasets.py
@@ -4,6 +4,8 @@ This module contains functions relating to specific trait dataset manipulation
import os
from typing import Any
+from flask import current_app as app
+
def retrieve_sample_list(group: str):
"""
Get the sample list for a group (a category that datasets belong to)
@@ -14,7 +16,7 @@ def retrieve_sample_list(group: str):
samplelist = []
genofile_path = (
- f'{os.environ.get("GENENETWORK_FILES", "/home/gn2/production/genotype_files/")}'
+ f'{app.config.get("GENENETWORK_FILES", "/home/gn2/production/genotype_files/")}'
f'/genotype/{group}.geno'
)
if os.path.isfile(genofile_path):