-
The await $`python3 -m venv ${venvPath}`.quiet();
within(async () => { // not sure why this is needed, but doesn't work in top scope
// activate virtual env
$.prefix += `source ${path.join(venvPath, "bin/activate")};`;
echo(which.sync("pip3", { nothrow: true })); // /opt/homebrew/bin/pip3 - wrong path
echo(await $`which pip3`.quiet()); // /path/to/.venv/bin/pip3 - correct path
}))
Is there a way to update the path environment variable in the script? |
Beta Was this translation helpful? Give feedback.
Answered by
antonmedv
Oct 23, 2023
Replies: 1 comment 2 replies
-
This is expected.
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
antonmedv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is expected.
which.sync()
useswhich npm package and does not respect
$.prefix`.await $`which`
uses system which and executes$.prefix
before the command.