summaryrefslogtreecommitdiff
path: root/sphinx/builders
diff options
context:
space:
mode:
authorRoland Meister <devnull@localhost>2013-08-10 15:10:20 +0200
committerRoland Meister <devnull@localhost>2013-08-10 15:10:20 +0200
commitbf50ae8af86d5c919bca1bbdc5ef905ed7693f62 (patch)
tree2b98e8de89a69c67f66b7d2fda38ffed87ee4357 /sphinx/builders
parent383c3f7489e3e75fcf4c4c44ef291ad92d98fa4e (diff)
downloadsphinx-bf50ae8af86d5c919bca1bbdc5ef905ed7693f62.tar.gz
Unify usage of os.path/path in EpubBuilder.
Diffstat (limited to 'sphinx/builders')
-rw-r--r--sphinx/builders/epub.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/builders/epub.py b/sphinx/builders/epub.py
index 28969acd..1dfcc704 100644
--- a/sphinx/builders/epub.py
+++ b/sphinx/builders/epub.py
@@ -245,7 +245,7 @@ class EpubBuilder(StandaloneHTMLBuilder):
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:
@@ -597,7 +597,7 @@ class EpubBuilder(StandaloneHTMLBuilder):
})
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