+2005-11-23 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * scripts/midi2ly.py (track_first_item): backport: only return
+ non-null values.
+
2005-11-10 Han-Wen Nienhuys <hanwen@xs4all.nl>
* scripts/lilypond-book.py: quote shell arguments.
#
libdir = '@local_lilypond_libdir@'
if not os.path.isdir (libdir):
- libdir = '@lilypond_libdir@'
+ libdir = '@lilypond_libdir@'
# ugh
if os.environ.has_key ('LILYPONDPREFIX'):
def track_first_item (track):
for thread in track:
- return thread_first_item (thread)
+ t = thread_first_item (thread)
+ if t:
+ return t
+ return None
def guess_clef (track):
i = 0