import getopt
import sys
import os
+import string
version = '@TOPLEVEL_VERSION@'
################################################################
-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])
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')