Skip to content

Commit

Permalink
fix pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
PWZER committed Jul 14, 2022
1 parent 49493af commit 1713027
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions tools/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def dist_copy(repo, dist_dir):
dst_path = templates_dir.joinpath('doc.html')

# license file
license_path = dist_dir.parent.joinpath("LICENSE")
dst_license_path = templates_dir.joinpath("LICENSE")
license_path = dist_dir.parent.joinpath('LICENSE')
dst_license_path = static_dir.joinpath('LICENSE')
if license_path.exists():
shutil.copyfile(license_path, dst_license_path)
print('copy {} => {}'.format(license_path, dst_license_path))
Expand Down Expand Up @@ -140,8 +140,8 @@ def replace_html_content():


def replace_readme(ui_version, editor_version):
readme_path = cur_dir.parent.joinpath("README.md")
readme = readme_path.read_text(encoding="utf-8")
readme_path = cur_dir.parent.joinpath('README.md')
readme = readme_path.read_text(encoding='utf-8')
if ui_version:
readme = re.sub(r'Swagger UI version is `.*`',
'Swagger UI version is `{}`'.format(ui_version), readme)
Expand Down

0 comments on commit 1713027

Please sign in to comment.