mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-16 07:13:53 -05:00
created new project.
modified rbenv source for Python and renamed to pyenv.
This commit is contained in:
16
bin/python-local-exec
Executable file
16
bin/python-local-exec
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# `python-local-exec` is a drop-in replacement for the standard Python
|
||||
# shebang line:
|
||||
#
|
||||
# #!/usr/bin/env python-local-exec
|
||||
#
|
||||
# Use it for scripts inside a project with an `.pyenv-version`
|
||||
# file. When you run the scripts, they'll use the project-specified
|
||||
# Python version, regardless of what directory they're run from. Useful
|
||||
# for e.g. running project tasks in cron scripts without needing to
|
||||
# `cd` into the project first.
|
||||
|
||||
set -e
|
||||
export PYENV_DIR="${1%/*}"
|
||||
exec python "$@"
|
||||
Reference in New Issue
Block a user