Skip to content

Commit

Permalink
feat: add ability to pass user flags to python interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
muravev-vasilii committed Nov 20, 2024
1 parent eb9e0f2 commit 81d4469
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py/private/run.tmpl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
hash -r 2> /dev/null
fi

exec "{{EXEC_PYTHON_BIN}}" {{INTERPRETER_FLAGS}} "$(rlocation {{ENTRYPOINT}})" "$@"
RULES_PY_USER_INTERPRETER_FLAGS="${RULES_PY_USER_INTERPRETER_FLAGS:-}"
exec "{{EXEC_PYTHON_BIN}}" {{INTERPRETER_FLAGS}} $RULES_PY_USER_INTERPRETER_FLAGS "$(rlocation {{ENTRYPOINT}})" "$@"

0 comments on commit 81d4469

Please sign in to comment.