Skip to content

Commit 81d4469

Browse files
feat: add ability to pass user flags to python interpreter
1 parent eb9e0f2 commit 81d4469

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: py/private/run.tmpl.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
5858
hash -r 2> /dev/null
5959
fi
6060

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

0 commit comments

Comments
 (0)