1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 01:06:50 +00:00

fix API generation

properly generate the module name
This commit is contained in:
Antoine Beaupré 2015-10-09 14:29:16 -04:00
parent ff04a654ab
commit 2f9bdfe96b

View file

@ -189,7 +189,8 @@ def run(self):
""")
for mod in glob('borg/*.py') + glob('borg/*.pyx'):
print("examining module %s" % mod)
if "/_" not in mod:
mod = mod.replace('.pyx', '').replace('.py', '').replace('/', '.')
if "._" not in mod:
doc.write("""
.. automodule:: %s
:members: