Browse Source

fixed setup

main
R 4 months ago
parent
commit
1e0f4111b2
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      setup.py

+ 5
- 3
setup.py View File

@ -25,15 +25,17 @@ def compile_documentation():
if docutils is None:
return htmlfiles
dst = pathlib.Path('./gitlab_todotxt/docs')
src = pathlib.Path('./doc')
dst = pathlib.Path('./gitlab_todotxt/doc')
dst.mkdir(exist_ok=True)
pathlib.Path('./man').mkdir(exist_ok=True)
man_pter = None
if None not in [docutils, manpage]:
for fn in pathlib.Path('./doc').iterdir():
if None not in [docutils, manpage] and src.exists():
for fn in src.iterdir():
if fn.suffix == '.rst':
if fn.stem == 'pter':
man_pter = str(fn)


Loading…
Cancel
Save