1. Matt McClure
  2. sphinx

Commits

Roland Meister  committed ff1f35b

Unify usage of os.path/path in EpubBuilder.

  • Participants
  • Parent commits d22d42e
  • Branches default

Comments (0)

Files changed (1)

File sphinx/builders/epub.py

View file
  • Ignore whitespace
         doctree = self.env.get_and_resolve_doctree(self.config.master_doc,
             self, prune_toctrees=False, includehidden=True)
         self.refnodes = self.get_refnodes(doctree, [])
-        master_dir = os.path.dirname(self.config.master_doc)
+        master_dir = path.dirname(self.config.master_doc)
         if master_dir:
             master_dir += '/' # XXX or os.sep?
             for item in self.refnodes:
                     })
                 ctx = {'image': self.esc(image), 'title': self.config.project}
                 self.handle_page(
-                        os.path.splitext(_coverpage_name)[0], ctx, html_tmpl)
+                        path.splitext(_coverpage_name)[0], ctx, html_tmpl)
 
         guide = []
         auto_add_cover = True