X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Flilypond-pdfpc-helper.py;h=8f9500dbd7baf4259c9d22a9518a55635c27272b;hb=f5889770b05d6ed2bab79cdb82b65cea238b92df;hp=87f23c008867aa0b947626f31fcbb27bf30f7cfb;hpb=718b6113285ae4d2ff3aa77a84aa384f063c1388;p=lilypond.git diff --git a/scripts/lilypond-pdfpc-helper.py b/scripts/lilypond-pdfpc-helper.py index 87f23c0088..8f9500dbd7 100644 --- a/scripts/lilypond-pdfpc-helper.py +++ b/scripts/lilypond-pdfpc-helper.py @@ -3,6 +3,7 @@ import re import getopt import sys import os +import string version = '@TOPLEVEL_VERSION@' @@ -60,7 +61,12 @@ if not files: ################################################################ -match = re.match ('([^:]+):([^:]+):(.*)', files[0]) + +arg = files[0] + +arg = re.sub ('textedit://','', arg) + +match = re.match ('([^:]+):([^:]+):(.*)', arg) if not match: sys.stderr.write (_("Not in FILE:LINE:COL format: ") + files[0]) @@ -86,6 +92,8 @@ if ly_pc_editor == None: command = ly_pc_editor % vars() +print 'invoked with %s\ncalling %s\n' % (string.join (sys.argv),command) + status = os.system (command) if status: sys.stderr.write (_("Command failed: `%s' (status %d)") % (command, status) + '\n')