diff --git a/bin/setup-base-dir b/bin/setup-base-dir index 0f3c8f0a2f8f433348d53afd49bc499efc59aa57_YmluL3NldHVwLWJhc2UtZGly..47d60ed784a7a88cb420746b7f63c2525fc9592e_YmluL3NldHVwLWJhc2UtZGly 100755 --- a/bin/setup-base-dir +++ b/bin/setup-base-dir @@ -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)