From f6149b6f9fff31a72853992dd77cb8263901d351 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Wed, 14 Aug 2013 09:29:17 +0200 Subject: [PATCH] Pathnames get all backward slashes replaced with forward ones (for windows compatibility) --- assemble.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assemble.py b/assemble.py index f149a4d..08deeb4 100644 --- a/assemble.py +++ b/assemble.py @@ -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