From: Julien Rioux Date: Fri, 9 Sep 2011 09:13:18 +0000 (-0400) Subject: Fix issue #1815: lilypond-book fails on Windows X-Git-Tag: release/2.15.11-1~8 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=12c4471b6b0343ee385a01ef6ba23d22a6feab2d;p=lilypond.git Fix issue #1815: lilypond-book fails on Windows The path separator was hardcoded to the forward slash '/'. Use os.path.join instead, fixing this in a portable way. --- diff --git a/python/book_snippets.py b/python/book_snippets.py index cbf09a7a28..f128ac16ff 100644 --- a/python/book_snippets.py +++ b/python/book_snippets.py @@ -580,7 +580,7 @@ left-margin-default right-margin-default)" def basename (self): cs = self.get_checksum () - name = '%s/lily-%s' % (cs[:2], cs[2:]) + name = os.path.join (cs[:2], 'lily-%s' % cs[2:]) return name final_basename = basename