---------- Forwarded message ----------
From: Milan Zamazal <[email protected]>
Date: Fri, Oct 2, 2009 at 9:45 AM
Subject: [PATCH] Make lilysong work on Python >= 2.5
To: Han-Wen Nienhuys <[email protected]>


---
 scripts/lilysong.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/scripts/lilysong.py b/scripts/lilysong.py
index f02aca7..84c2ce4 100644
--- a/scripts/lilysong.py
+++ b/scripts/lilysong.py
@@ -25,6 +25,7 @@ import codecs
 import optparse
 import os
 import popen2
+import stat
 import sys
 import tempfile

@@ -174,7 +175,7 @@ def process_ly_file (file_name, voice):
    xml_file = None
    for f in os.listdir (os.path.dirname (file_name) or '.'):
        if (f[-4:] == '.xml' and
-            (not xml_file or os.stat.st_mtime (f) > os.stat.st_mtime
(xml_file))):
+            (not xml_file or os.stat(f)[stat.ST_MTIME] >
os.stat(xml_file)[stat.ST_MTIME])):
            xml_file = f
    if xml_file:
        process_xml_file (xml_file, voice, None, None)


--
1.5.6.5





-- 
Han-Wen Nienhuys - [email protected] - http://www.xs4all.nl/~hanwen


_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to