Skip to content
Snippets Groups Projects
Commit fa26695b3baa authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

setup-base-dir: support relative base-dir argument

parent 992de6299cc5
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,6 @@ ...@@ -75,7 +75,6 @@
def setup_base_dir(path): def setup_base_dir(path):
base_path = Path(path) base_path = Path(path).absolute()
old_dir = os.curdir
print("Creating folders") print("Creating folders")
base_path.mkdir(parents=True) base_path.mkdir(parents=True)
...@@ -80,4 +79,9 @@ ...@@ -80,4 +79,9 @@
print("Creating folders") print("Creating folders")
base_path.mkdir(parents=True) base_path.mkdir(parents=True)
base_path.joinpath(RESULT_DIR).mkdir()
base_path.joinpath(BIN_ENV_DIR).mkdir()
base_path.joinpath(DATA_ENV_DIR).mkdir()
old_dir = os.curdir
os.chdir(base_path) os.chdir(base_path)
try: try:
...@@ -82,8 +86,5 @@ ...@@ -82,8 +86,5 @@
os.chdir(base_path) os.chdir(base_path)
try: try:
base_path.joinpath(RESULT_DIR).mkdir()
base_path.joinpath(BIN_ENV_DIR).mkdir()
base_path.joinpath(DATA_ENV_DIR).mkdir()
install_poulpe() install_poulpe()
setup_quick_access() setup_quick_access()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment