From 18c657003768433ac11958debc41ea4ab70c6f51 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 27 Mar 2002 02:00:20 +0000 Subject: [PATCH] lilypond-1.5.9 --- scripts/ly2dvi.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/ly2dvi.py b/scripts/ly2dvi.py index 6d74809fda..50fa1bca87 100644 --- a/scripts/ly2dvi.py +++ b/scripts/ly2dvi.py @@ -66,7 +66,6 @@ import __main__ import operator import tempfile import traceback -import resource datadir = '@datadir@' sys.path.append (datadir + '/python') @@ -79,6 +78,15 @@ except: def _ (s): return s +# Attempt to fix problems with limited stack size set by Python! +# Sets unlimited stack size. Note that the resource module only +# is available on UNIX. +try: + import resource + resource.setrlimit(resource.RLIMIT_STACK, (-1,-1)) +except: + pass + layout_fields = ['dedication', 'title', 'subtitle', 'subsubtitle', 'footer', 'head', 'composer', 'arranger', 'instrument', @@ -151,7 +159,7 @@ verbose_p = 0 # environment = { 'MFINPUTS' : datadir + '/mf' + ':', - 'TEXINPUTS': datadir + '/tex:' + datadir + '/ps' + ':', + 'TEXINPUTS': datadir + '/tex:' + datadir + '/ps:' + os.getcwd() + ':', 'TFMFONTS' : datadir + '/tfm' + ':', 'GS_FONTPATH' : datadir + '/afm:' + datadir + '/pfa', 'GS_LIB' : datadir + '/ps', -- 2.39.5