Merge pull request #47 from hercules-ci/unset-pythonpath

Unset PYTHONPATH
This commit is contained in:
Domen Kožar 2019-05-09 15:25:05 +07:00 committed by GitHub
commit aee39bbb15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,14 @@
#!/usr/bin/env bash
# Close off the python module search path
#
# Accepting directories from the environment into the search path
# tends to break things. Docker Compose does not have a plugin
# system as far as I can tell, so I don't expect this to break a
# feature, but rather to make the program more robustly self-
# contained.
unset PYTHONPATH
set -euo pipefail
export PATH="@path@:$PATH"