]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/ly2dvi.py
release: 1.4.13
[lilypond.git] / scripts / ly2dvi.py
index f00531f78c249859802c30ca53f632ed297c7c4d..a883199cf198f648c9d8b36dcc86de32130f82e8 100644 (file)
@@ -70,6 +70,19 @@ import operator
 import tempfile
 import traceback
 
+# Handle bug in Python 1.6-2.1
+#
+# there are recursion limits for some patterns in Python 1.6 til 2.1. 
+# fix this by importing pre instead. Fix by Mats.
+
+# todo: should check Python version first.
+try:
+       import pre
+       re = pre
+       del pre
+except ImportError:
+       import re
+
 
 ################################################################
 # lilylib.py -- options and stuff