From fd2508632744c525337e04de54db6ababdae937c Mon Sep 17 00:00:00 2001 From: Chris Leaman Date: Wed, 21 Nov 2018 12:13:18 +1100 Subject: [PATCH] Fix issues with PYTHONPATH --- .env | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.env b/.env index f144aa6..a71086e 100644 --- a/.env +++ b/.env @@ -13,4 +13,8 @@ MULTIPROCESS_THREADS=2 # The settings below should be left as is unless you know what you're doing. # We want to create the pipenv virtualenv in the current folder -PIPENV_VENV_IN_PROJECT=1 \ No newline at end of file +PIPENV_VENV_IN_PROJECT=1 + +# Need to set pythonpath so that relative imports can be properly used in with pipenv +# Refer to https://stackoverflow.com/q/52986500 and https://stackoverflow.com/a/49797761 +PYTHONPATH=${PWD} \ No newline at end of file