Skip to content

Commit

Permalink
refactor(directory): allow parents creation
Browse files Browse the repository at this point in the history
  • Loading branch information
dfguerrerom committed Jun 25, 2024
1 parent fabac78 commit b18b148
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions component/parameter/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
# please make sure that any result that you produce is embeded inside this folder
# create a folder adapted to your need inside this folder to save anything in sepal
module_dir = Path.home() / "module_results"
module_dir.mkdir(exist_ok=True)
module_dir.mkdir(exist_ok=True, parents=True)

weplan_dir = module_dir / "weplan"
weplan_dir.mkdir(exist_ok=True)
weplan_dir.mkdir(exist_ok=True, parents=True)

tmp_dir = Path.home() / "tmp" / "weplan"
tmp_dir.mkdir(exist_ok=True)
tmp_dir.mkdir(exist_ok=True, parents=True)

0 comments on commit b18b148

Please sign in to comment.