]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.4.4
authorfred <fred>
Wed, 27 Mar 2002 01:19:56 +0000 (01:19 +0000)
committerfred <fred>
Wed, 27 Mar 2002 01:19:56 +0000 (01:19 +0000)
scripts/lilypond-book.py

index a9e53567ec1ddfae05e063388c750aca8cbd4f96..e4efd1652a2ce5353b791c0201e10797bff20007 100644 (file)
@@ -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)