]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scripts/lilypond-book.py (LATEX_INSPECTION_DOCUMENT): Use the
authorMats Bengtsson <mats.bengtsson@s3.kth.se>
Tue, 14 Mar 2006 14:44:36 +0000 (14:44 +0000)
committerMats Bengtsson <mats.bengtsson@s3.kth.se>
Tue, 14 Mar 2006 14:44:36 +0000 (14:44 +0000)
file descriptor returned by tempfile.mkstemp() when writing
to tmpfile and closing it. Solves problem with unlink(tmpfile)
on mingw.

ChangeLog
scripts/lilypond-book.py

index b2d80a7d88979b91368899022b802e3c6a68a186..774efcf91345c44c1d6f2fddedd54ca5d87668b3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-03-14  Mats Bengtsson  <mabe@drongo.s3.kth.se>
+
+       * scripts/lilypond-book.py (LATEX_INSPECTION_DOCUMENT): Use the
+       file descriptor returned by tempfile.mkstemp() when writing
+       to tmpfile and closing it. Solves problem with unlink(tmpfile)
+       on mingw.
+
 2006-03-14  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * po/fi.po: newline bugfix.
index f2f48142cd544d9efe6cc2f073012d083fdc5fc5..3905e8da2c60988d9d6a8a40c91c756d7175fd3f 100644 (file)
@@ -1409,7 +1409,7 @@ def get_latex_textwidth (source):
        logfile = os.path.splitext (tmpfile)[0] + '.log'
        logfile = os.path.split (logfile)[1]
 
-       tmp_handle = open (tmpfile,'w')
+       tmp_handle = os.fdopen (handle,'w')
        tmp_handle.write (latex_document)
        tmp_handle.close ()