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

setup-base-dir: fix the proxy scripts

oops
parent 0f3c8f0a2f8f
No related branches found
No related tags found
No related merge requests found
......@@ -43,9 +43,8 @@
subprocess.run(command, check=True)
POULPE_PROXY = """#!/bin/bash
set -euo pipefail
. `dirname $0`/activate
poulpe "$@"
POULPE_PROXY = """#!/usr/bin/bash
base="`dirname $0`"
"$base"/../.venv/bin/poulpe "$@"
"""
......@@ -50,8 +49,8 @@
"""
BASH_PROXY = """#!/bin/bash
set -euo pipefail
. `dirname $0`/activate
BASH_PROXY = """#!/usr/bin/bash
base="`dirname $0`"
. "$base"/../.venv/bin/activate
"$@"
"""
......@@ -62,7 +61,6 @@
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)
......
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