feat(scripts): python wrapper for python3

This commit is contained in:
2023-08-11 16:10:48 +03:00
parent ac18c73f53
commit 1185524e97
2 changed files with 8 additions and 0 deletions

View File

@@ -95,6 +95,7 @@ have op && {
export WORKON_HOME="$XDG_DATA_HOME/virtualenvs"
export PYENV_ROOT="$XDG_STATE_HOME/pyenv"
have pyenv && {
path_append "$(pyenv root)/shims"
path_append "$PYENV_ROOT/bin"
eval "$(pyenv init -)"
}

7
local/bin/python Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
# work around https://github.com/Microsoft/vscode/issues/3941
# and anyone else who expects to see a 'python' executable
exec python3 "$@"