From 47081ccd41472b9c98cfa9380648642d2db37851 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 8 May 2019 23:45:21 +0200 Subject: [PATCH] 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. --- src/arion | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/arion b/src/arion index 75c8ddf..f8aff15 100755 --- a/src/arion +++ b/src/arion @@ -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"