Pathnames get all backward slashes replaced with forward ones (for windows compatibility)

This commit is contained in:
Sebastian Hugentobler 2013-08-14 09:29:17 +02:00
parent ffe0102369
commit f6149b6f9f

View File

@ -29,6 +29,10 @@ def build_songmap(lilyfiles, lyric_folder='./lyrics'):
title = find_title(scorefile)
# for windows systems
scorefile = scorefile.replace('\\', '/')
lyricfile = lyricfile.replace('\\', '/')
songmap.append({'scorefile': scorefile, 'lyricfile': lyricfile, 'title': title })
return songmap