Merge pull request #70 from rtfd/fix-apidir

Handle string input for api dir
pull/76/head
Eric Holscher 9 years ago
commit 06245790dc

@ -27,7 +27,10 @@ def run_autoapi(app):
# Make sure the paths are full
normalized_dirs = []
for path in app.config.autoapi_dirs:
autoapi_dirs = app.config.autoapi_dirs
if isinstance(autoapi_dirs, basestring):
autoapi_dirs = [autoapi_dirs]
for path in autoapi_dirs:
if os.path.isabs(path):
normalized_dirs.append(path)
else:

Loading…
Cancel
Save