From: fred Date: Wed, 27 Mar 2002 01:19:56 +0000 (+0000) Subject: lilypond-1.4.4 X-Git-Tag: release/1.5.59~615 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=554a2c21123a5a34195d423fc8b6f7dfd76e3d01;p=lilypond.git lilypond-1.4.4 --- diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index a9e53567ec..e4efd1652a 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -986,9 +986,13 @@ def compile_all_files (chunks): if do_deps: depfiles=map (lambda x: re.sub ('(.*)\.ly', '\\1.dep', x), tex) for i in depfiles: - text=open (i).read () + f =open (i) + text=f.read () + f.close () text=re.sub ('\n([^:\n]*):', '\n' + foutn + ':', text) - open (i, 'w').write (text) + f = open (i, 'w') + f.write (text) + f.close () for e in eps: system(r"tex '\nonstopmode \input %s'" % e)