We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5492c9d commit 0b14e53Copy full SHA for 0b14e53
Makefile
@@ -1,6 +1,12 @@
1
.DEFAULT_GOAL := help
2
3
-PYTHONPATH=
+# Depending on how the Python interpreter was built and whether PYTHONSAFEPATH
4
+# is set the current working directory may not be on sys.path. It is especially
5
+# problematic if PYTHONSAFEPATH is set in rc files that load in every subshell
6
+# since this repository launches each query in a subshell. To get around such
7
+# problems, we add the current directory to PYTHONPATH unconditionally,
8
+# bypassing any dependence on the default values in sys.path.
9
+export PYTHONPATH := $(PWD):$(PYTHONPATH)
10
SHELL=/bin/bash
11
VENV=.venv
12
VENV_BIN=$(VENV)/bin
0 commit comments