Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
saimn committed May 6, 2022
1 parent 39cd650 commit 3fed892
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sphinx_automodapi/tests/test_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,24 @@ def test_duplicated_warning(tmpdir):

start_dir = os.path.abspath('.')
src_dir = '.'
print(input_dir)

for root, dirnames, filenames in os.walk(input_dir):
print(filenames)
for filename in filenames:
root_dir = os.path.join(docs_dir, os.path.relpath(root, input_dir))
ensuredir(root_dir)
input_file = os.path.join(root, filename)
print('copy', input_file, root_dir)
shutil.copy(input_file, root_dir)

argv = ['-W', '-b', 'html', src_dir, '_build/html']

print(docs_dir)

try:
os.chdir(docs_dir)
print(os.listdir())
status = build_main(argv=argv)
finally:
os.chdir(start_dir)
Expand Down

0 comments on commit 3fed892

Please sign in to comment.