aboutsummaryrefslogtreecommitdiff
path: root/py2man
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2015-01-07 15:35:38 -0800
committerBrian Dolbec <dolsen@gentoo.org>2015-01-07 15:35:38 -0800
commitfa65004a0aa58ae5d6762d7e278b0d130f10b749 (patch)
tree06cd0354f87b6aabd87b1c090232e0ec51203934 /py2man
parentgkeys/base.py: Wrap all output with _unicode_decode() (diff)
downloadgentoo-keys-fa65004a0aa58ae5d6762d7e278b0d130f10b749.tar.gz
gentoo-keys-fa65004a0aa58ae5d6762d7e278b0d130f10b749.tar.bz2
gentoo-keys-fa65004a0aa58ae5d6762d7e278b0d130f10b749.zip
py2man/manpages.py: Use ensure_dirs from gkeys fileops
For sdist created tarballs, it was not including an empty doc dir.
Diffstat (limited to 'py2man')
-rw-r--r--py2man/manpages.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/py2man/manpages.py b/py2man/manpages.py
index 9e75d2e..f060e50 100644
--- a/py2man/manpages.py
+++ b/py2man/manpages.py
@@ -6,6 +6,8 @@ import codecs
import os
from datetime import datetime
+from gkeys.fileops import ensure_dirs
+
from py2man.options import LONG_OPTS, SHORT_OPTS
@@ -30,6 +32,11 @@ class ManPage(object):
self.path = docpath
self.authors = authors
self.date = datetime.strftime(datetime.today(),'%B %d, %Y')
+ self.ensure_docdir()
+
+
+ def ensure_docdir(self):
+ ensure_dirs(self.path)
@staticmethod