Skip to content

Commit

Permalink
Set fallback paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbit committed Jul 12, 2022
1 parent 91028dd commit f1ff898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
load_dotenv()

# Where the simulations results will be saved.
DATA_PATH = Path(os.getenv('ER_DATA_PATH'))
DATA_PATH = Path(os.getenv("ER_DATA_PATH", "./resources"))
DATA_PATH.mkdir(parents=True, exist_ok=True)

# Where the generated figures will be saved.
FIGURES_PATH = Path(os.getenv('ER_FIGURES_PATH'))
FIGURES_PATH = Path(os.getenv("ER_FIGURES_PATH", "./resources"))
FIGURES_PATH.mkdir(parents=True, exist_ok=True)

0 comments on commit f1ff898

Please sign in to comment.