repo2docker/repo2docker/buildpacks/python3-login

12 wiersze
374 B
Bash
Executable File

#!/bin/bash -l
# This is an executable that launches Python in a login shell
# to ensure that full profile setup occurs.
# shebang on linux only allows 1 argument,
# so we couldn't pick a login shell in one shebang line
# for a Python script
# -u means unbuffered, which one ~always wants in a container
# otherwise output can be mysteriously missing
exec python3 -u "$@"