diff options
Diffstat (limited to 'patches/latexrun-pull-61')
-rw-r--r-- | patches/latexrun-pull-61 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/latexrun-pull-61 b/patches/latexrun-pull-61 new file mode 100644 index 0000000..a784377 --- /dev/null +++ b/patches/latexrun-pull-61 @@ -0,0 +1,18 @@ +--- latexrun ++++ latexrun +@@ -457,10 +457,12 @@ class Message(collections.namedtuple( + 'Message', 'typ filename lineno msg')): + def emit(self): + if self.filename: +- if self.filename.startswith('./'): +- finfo = self.filename[2:] +- else: ++ cwd = os.getcwd() ++ if (os.path.isabs(self.filename) and ++ os.path.commonpath([self.filename, cwd]) != cwd): + finfo = self.filename ++ else: ++ finfo = os.path.relpath(self.filename, cwd) + else: + finfo = '<no file>' + if self.lineno is not None: |