summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@qt.io>2018-01-03 15:30:32 +0100
committerLars Knoll <lars.knoll@qt.io>2018-01-08 09:02:33 +0000
commit2184f666169b7b9b09a9b3ee66bc657bba70bcb9 (patch)
tree4983baa71bb883924c4d2bcbe6a5b0184d43f421
parent79902cae3a95e68ba1a0fcee9aaebd31b79d9637 (diff)
Fix running make in the source dir
We need a path of the files to process, otherwise the script fails. Making sure the path is absolute works reliably. Change-Id: If63ac69d076f0186a29f4abc59274cda2d0afa62 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
-rwxr-xr-xscripts/quip2html.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/quip2html.py b/scripts/quip2html.py
index 544b472..19d293c 100755
--- a/scripts/quip2html.py
+++ b/scripts/quip2html.py
@@ -221,7 +221,8 @@ class QuipWriter(html4css1.Writer):
class GitRunner(object):
def __init__(self, filename, stderr):
- self.path, self.base = os.path.split(filename)
+ path, self.base = os.path.split(filename)
+ self.path = os.path.abspath(path)
self.stderr = stderr
def run(self, args):