2002-04-25 Jan Nieuwenhuizen <janneke@gnu.org>
+ * scripts/ly2dvi.py: Mats' fix. Try to import pre if available.
+
* scripts/lilypond-book.py: %Newline, rather than glue macros
after \end{verbatim}.
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
#
sys.exit (0)
elif o == '--find-pfa' or o == '-f':
fonts = map (lambda x: x + '.pfa', find_pfa_fonts (a))
+ print `fonts`
files = map (lambda x:
find_file_in_path (os.environ['GS_FONTPATH'], x),
fonts)