]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix issue #1815: lilypond-book fails on Windows
authorJulien Rioux <jrioux@physics.utoronto.ca>
Fri, 9 Sep 2011 09:13:18 +0000 (05:13 -0400)
committerGraham Percival <graham@percival-music.ca>
Fri, 9 Sep 2011 17:33:01 +0000 (18:33 +0100)
The path separator was hardcoded to the forward slash '/'.
Use os.path.join instead, fixing this in a portable way.

python/book_snippets.py

index cbf09a7a28f59bcf47cb8103883c2d511bedc510..f128ac16fff8801f4c6f2774b37e160e543110d5 100644 (file)
@@ -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