]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/output-ps.scm
#4877: Revert #4747: (Remove (all) uses of is-absolute?)
[lilypond.git] / scm / output-ps.scm
index 69f277203934985a01979476b56df1803c5a1bae..70b13848e4aa6ad898bac04f79d33c80dfdaf838 100644 (file)
                                 (ly:in-event-class? cause t))
                               point-and-click))))
             (let* ((location (ly:input-file-line-char-column music-origin))
+                   (raw-file (car location))
+                   (file (if (is-absolute? raw-file)
+                             raw-file
+                             (string-append (ly-getcwd) "/" raw-file)))
                    (x-ext (ly:grob-extent grob grob X))
                    (y-ext (ly:grob-extent grob grob Y)))
 
                              ;; Backslashes are not valid
                              ;; file URI path separators.
                              (ly:string-percent-encode
-                              (ly:string-substitute "\\" "/" (car location)))
+                              (ly:string-substitute "\\" "/" file))
 
                              (cadr location)
                              (caddr location)