]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/lilypond-pdfpc-helper.py
(LY_DEFINE): deprecate
[lilypond.git] / scripts / lilypond-pdfpc-helper.py
index 87f23c008867aa0b947626f31fcbb27bf30f7cfb..8f9500dbd7baf4259c9d22a9518a55635c27272b 100644 (file)
@@ -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')