Skip to content

Commit

Permalink
refactor: use pathlib as_posix()
Browse files Browse the repository at this point in the history
  • Loading branch information
sethfischer committed Jun 26, 2023
1 parent bbd73c6 commit 8dd1948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinxcontrib/cadquery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ def setup(app: Sphinx) -> ExtensionMetadata:
js_destination = app_outdir_dist / Path(filename).name

app.add_js_file(
str(js_destination.relative_to(app_static_directory)),
js_destination.relative_to(app_static_directory).as_posix(),
priority=metadata["priority"],
)

shutil.copyfile(js_source, js_destination)

css_destination = app_static_directory / "cadquery.css"
app.add_css_file(str(css_destination.relative_to(app_static_directory)))
app.add_css_file(css_destination.relative_to(app_static_directory).as_posix())
shutil.copyfile(_ROOT_DIR / "static/cadquery.css", css_destination)

setattr(app, "_sphinxcontrib_cadquery_assets_installed", True)
Expand Down

0 comments on commit 8dd1948

Please sign in to comment.