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

setup-base-dir: make a poulpe binary easy to access

parent 29ca11baf516
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,14 @@ ...@@ -40,6 +40,14 @@
subprocess.run(command, check=True) subprocess.run(command, check=True)
def setup_quick_access():
Path("bin").mkdir(parents=True)
env_bin = Path("..") / ".venv" / "bin"
dir_bin = Path("bin")
os.symlink(env_bin / "poulpe", dir_bin / "poulpe")
def setup_base_dir(path): def setup_base_dir(path):
base_path = Path(path) base_path = Path(path)
old_dir = os.curdir old_dir = os.curdir
...@@ -51,6 +59,7 @@ ...@@ -51,6 +59,7 @@
base_path.joinpath(BIN_ENV_DIR).mkdir() base_path.joinpath(BIN_ENV_DIR).mkdir()
base_path.joinpath(DATA_ENV_DIR).mkdir() base_path.joinpath(DATA_ENV_DIR).mkdir()
install_poulpe() install_poulpe()
setup_quick_access()
print("Create symlinks to development Poulpe for suites") print("Create symlinks to development Poulpe for suites")
source = (POULPE_DIR / SUITE_DIR).resolve() source = (POULPE_DIR / SUITE_DIR).resolve()
......
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