Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

16 lignes
505 B

  1. #!/usr/bin/env bash
  2. #
  3. # `python-local-exec` is a drop-in replacement for the standard Python
  4. # shebang line:
  5. #
  6. # #!/usr/bin/env python-local-exec
  7. #
  8. # Use it for scripts inside a project with an `.pyenv-version`
  9. # file. When you run the scripts, they'll use the project-specified
  10. # Python version, regardless of what directory they're run from. Useful
  11. # for e.g. running project tasks in cron scripts without needing to
  12. # `cd` into the project first.
  13. set -e
  14. export PYENV_DIR="${1%/*}"
  15. exec python "$@"