commit:     b4c34a95f4c66db9c658f6dd75d9193c6e55dab4
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  3 12:45:44 2023 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Feb  3 12:45:44 2023 +0000
URL:        
https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=b4c34a95

setup.py: fix usage of absolute path

Bug: https://bugs.gentoo.org/892938
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 setup.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/setup.py b/setup.py
index f6e96a36..41aedd32 100644
--- a/setup.py
+++ b/setup.py
@@ -36,12 +36,12 @@ class build_treesitter(Command, SubCommand):
         pass
 
     def get_source_files(self):
-        cwd = Path(__file__).parent / "tree-sitter-bash/src"
+        src = "tree-sitter-bash/src/"
         return [
-            str(cwd / "GNUmakefile"),
-            str(cwd / "tree_sitter/parser.h"),
-            str(cwd / "parser.c"),
-            str(cwd / "scanner.cc"),
+            src + "GNUmakefile",
+            src + "tree_sitter/parser.h",
+            src + "parser.c",
+            src + "scanner.cc",
         ]
 
     library_path = Path(__file__).parent / "src/pkgcheck/bash/lang.so"

Reply via email to