Skip to content

Commit

Permalink
check .env file existance
Browse files Browse the repository at this point in the history
  • Loading branch information
ReiHashimoto committed Mar 27, 2024
1 parent f87f94b commit 3cd6902
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion studio/app/dir_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class DIRPATH:
CONDAENV_DIR = (
f"{os.path.dirname(os.path.dirname(os.path.dirname(__file__)))}/conda"
)
load_dotenv(f"{CONFIG_DIR}/.env")
if os.path.isfile(f"{CONDAENV_DIR}/.env"):
load_dotenv(f"{CONFIG_DIR}/.env")

SNAKEMAKE_FILEPATH = f"{APP_DIR}/Snakefile"
EXPERIMENT_YML = "experiment.yaml"
Expand Down

0 comments on commit 3cd6902

Please sign in to comment.