2006-03-12 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * scripts/lilypond-book.py (get_latex_textwidth): explicitly close tmphandle.
+
* python/lilylib.py (system): rewrite system() using
subprocess. Remove >& redirection trickery.
- * scripts/convert-ly.py (get_option_parser):
-
2006-03-11 Graham Percival <gpermus@gmail.com>
* Documentation/user/ changing-defaults, global, scheme-tutorial,
(handle, tmpfile) = tempfile.mkstemp('.tex')
logfile = os.path.splitext (tmpfile)[0] + '.log'
logfile = os.path.split (logfile)[1]
- open (tmpfile,'w').write (latex_document)
+
+ tmp_handle = open (tmpfile,'w')
+ tmp_handle.write (latex_document)
+ tmp_handle.close ()
+
ly.system ('latex %s' % tmpfile, be_verbose=global_options.verbose)
parameter_string = open (logfile).read()