]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/book_snippets.py
Makefile: Add missing .PHONY targets
[lilypond.git] / python / book_snippets.py
index b13d4817575874bc6ed4f7ce8e84a39b75dc7b9a..f128ac16fff8801f4c6f2774b37e160e543110d5 100644 (file)
@@ -395,13 +395,13 @@ class LilypondSnippet (Snippet):
                     self.option_dict[option] = None
 
 
-        # If LINE_WIDTH is used without parameter, set it to default.
+        # Store if we have an explicit line-width given
         has_line_width = self.option_dict.has_key (LINE_WIDTH)
         if has_line_width and self.option_dict[LINE_WIDTH] == None:
             has_line_width = False
             del self.option_dict[LINE_WIDTH]
 
-        # TODO: Can't we do that more efficiently (built-in python func?)
+        # Use default options (i.e. auto-detected line-width, etc)
         for k in self.formatter.default_snippet_options:
             if k not in self.option_dict:
                 self.option_dict[k] = self.formatter.default_snippet_options[k]
@@ -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