Add python3 doc building capability

This commit is contained in:
Steven Silvester
2014-12-13 11:59:22 -06:00
parent af2e6c3937
commit bd94253cef
6 changed files with 34 additions and 21 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ class ApiDocWriter(object):
classes : list of str
A list of (public) class names in the module.
"""
mod = __import__(uri, fromlist=[uri])
mod = __import__(uri, fromlist=[uri.split('.')[-1]])
# find all public objects in the module.
obj_strs = [obj for obj in dir(mod) if not obj.startswith('_')]
functions = []
+1 -1
View File
@@ -25,7 +25,7 @@ if __name__ == '__main__':
try:
__import__(package)
except ImportError, e:
except ImportError as e:
abort("Can not import skimage")
module = sys.modules[package]