diff --git a/docs/source/conf.py b/docs/source/conf.py index 5a685277..eb39ffc5 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -206,8 +206,7 @@ # path to .pyi files w/o having them installed src_path = "../../src/amrex" dst_path = os.path.join( - os.path.dirname(os.path.abspath(__file__)), - "_static/pyapi/amrex" + os.path.dirname(os.path.abspath(__file__)), "_static/pyapi/amrex" ) if os.path.exists(dst_path) and os.path.isdir(dst_path): shutil.rmtree(dst_path) @@ -215,14 +214,13 @@ for subdir, dirs, files in os.walk(dst_path): for f in files: - if f.find('.pyi') > 0: + if f.find(".pyi") > 0: dir_path = os.path.relpath(subdir, dst_path) old_path = os.path.join(dir_path, f) - new_path = old_path.replace(".pyi", ".py") + new_path = old_path.replace(".pyi", ".py") print(f"old_path={old_path}, new_path={new_path}") os.replace( - os.path.join(dst_path, old_path), - os.path.join(dst_path, new_path) + os.path.join(dst_path, old_path), os.path.join(dst_path, new_path) ) # insert into PYTHONPATH