summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--install-dev.py.in4
1 files changed, 1 insertions, 3 deletions
diff --git a/install-dev.py.in b/install-dev.py.in
index b4cfc6e..214b243 100644
--- a/install-dev.py.in
+++ b/install-dev.py.in
@@ -19,7 +19,7 @@ prefix_path = "%s/lib/python%d.%d/site-packages" % (
current_paths = os.environ.get("PYTHONPATH", "").split(":")
current_paths.append(prefix_path)
-current_paths.remove("")
+current_paths = [x for x in current_paths if x != ""]
os.environ["PYTHONPATH"] = ":".join(current_paths)
args = ["pip3", "install", '--install-option=--prefix=%s' % "@prefix@", "-e", "."]
@@ -27,5 +27,3 @@ if "@DEBIAN_PIP3_SYSTEM@":
args.push("@DEBIAN_PIP3_SYSTEM@")
os.execvp("pip3", args)
-
-