]> git.donarmstrong.com Git - lilypond.git/commitdiff
(get_latex_textwidth): oops. Take [0]
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 29 Aug 2005 23:40:47 +0000 (23:40 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 29 Aug 2005 23:40:47 +0000 (23:40 +0000)
of splitext.

ChangeLog
scripts/lilypond-book.py

index b77d1c004e39888fadd01bc8d7b745c33ffd416e..115c98759753089890516e2d522a24027f41b5b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-30  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * scripts/lilypond-book.py (get_latex_textwidth): oops. Take [0]
+       of splitext.
+
 2005-08-29  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * VERSION (PACKAGE_NAME): VERSION release 2.7.8
index 504cfa4e0b262281047f74757955ca57b47e88b6..37403c29672397d69ed292ebab45431fe44e0c36 100644 (file)
@@ -1293,7 +1293,7 @@ def get_latex_textwidth (source):
        # Workaround problems with unusable $TMP on Cygwin:
        tempfile.tempdir = ''
        tmpfile = tempfile.mktemp('.tex')
-       logfile = os.path.splitext (tmpfile) + '.log'
+       logfile = os.path.splitext (tmpfile)[0] + '.log'
        open (tmpfile,'w').write (latex_document)
        ly.system ('latex %s' % tmpfile)
        parameter_string = open (logfile).read()