diff --git a/studio/app/dir_path.py b/studio/app/dir_path.py index 8ea1af0fb..7926989a5 100644 --- a/studio/app/dir_path.py +++ b/studio/app/dir_path.py @@ -25,12 +25,12 @@ class DIRPATH: STUDIO_DIR = os.path.dirname(os.path.dirname(__file__)) APP_DIR = os.path.dirname(__file__) CONFIG_DIR = f"{STUDIO_DIR}/config" + if os.path.isfile(f"{CONFIG_DIR}/.env"): + load_dotenv(f"{CONFIG_DIR}/.env") CONDAENV_DIR = ( f"{os.path.dirname(os.path.dirname(os.path.dirname(__file__)))}/conda" ) - if os.path.isfile(f"{CONDAENV_DIR}/.env"): - load_dotenv(f"{CONFIG_DIR}/.env") SNAKEMAKE_FILEPATH = f"{APP_DIR}/Snakefile" EXPERIMENT_YML = "experiment.yaml"