From 0fec726965e893bd465eb6169c242720b499be20 Mon Sep 17 00:00:00 2001 From: Marco Nilsson Date: Tue, 13 Feb 2024 09:11:40 +0100 Subject: [PATCH] Use the path of setup.py instead of cwd to determine where the sources are located. This makes it possible to install the library using pip+git. --- python/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/setup.py b/python/setup.py index 2d62cdad..d86bf656 100644 --- a/python/setup.py +++ b/python/setup.py @@ -10,7 +10,7 @@ import shutil import subprocess -current_dir = os.environ.get("PWD") +current_dir = os.path.dirname(os.path.realpath(__file__)) build_dir = os.path.abspath(os.path.join(current_dir, "build")) root_dir = os.path.abspath(os.path.join(current_dir, ".."))