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

setup-base-dir: use a proxy script for poulpe

The previous approach failed.
parent 13749bd2d308
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,12 @@
subprocess.run(command, check=True)
POULPE_PROXY = """#!/bin/bash
set -euo pipefail
. `dirname $0`/activate
poulpe "$@"
"""
BASH_PROXY = """#!/bin/bash
set -euo pipefail
. `dirname $0`/activate
......@@ -54,6 +60,11 @@
env_bin = Path("..") / ".venv" / "bin"
dir_bin = Path("bin")
os.symlink(env_bin / "poulpe", dir_bin / "poulpe")
poulpe_proxy = dir_bin / "poulpe"
poulpe_proxy.write_text(POULPE_PROXY)
poulpe_proxy.chmod(poulpe_proxy.stat().st_mode | stat.S_IEXEC)
os.symlink(env_bin / "activate", dir_bin / "activate")
bash_proxy = dir_bin / "shell"
......
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