[vlc-commits] python: handle relative paths for include files

Olivier Aubert git at videolan.org
Sun Mar 31 20:16:56 CEST 2019


vlc/python | branch: master | Olivier Aubert <contact at olivieraubert.net> | Sun Mar 31 19:16:10 2019 +0200| [f9f800c93b90a50f35bfca0b01ad733b98a0b2b1] | committer: Olivier Aubert

python: handle relative paths for include files

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=f9f800c93b90a50f35bfca0b01ad733b98a0b2b1
---

 generator/generate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generator/generate.py b/generator/generate.py
index e48245a..63b1ea4 100755
--- a/generator/generate.py
+++ b/generator/generate.py
@@ -713,7 +713,7 @@ class Parser(object):
         # approaches.
         if version is None:
             # Try to get version information from git describe
-            git_dir = Path(h_files[0]).parents[2].joinpath('.git')
+            git_dir = Path(h_files[0]).absolute().parents[2].joinpath('.git')
             if git_dir.is_dir():
                 # We are in a git tree. Let's get the version information
                 # from there if we can call git



More information about the vlc-commits mailing list