Unset PYTHONPATH
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.
This commit is contained in:
parent
a95066a844
commit
47081ccd41
1 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,14 @@
|
||||||
#!/usr/bin/env bash
|
#!/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
|
set -euo pipefail
|
||||||
|
|
||||||
export PATH="@path@:$PATH"
|
export PATH="@path@:$PATH"
|
||||||
|
|
Loading…
Reference in a new issue