mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 15:12:28 -06:00
main: check webdeps through resource abstraction
This commit is contained in:
parent
53316a7f36
commit
cc0fbc554e
|
@ -57,6 +57,7 @@ from .util import (
|
||||||
ansi_re,
|
ansi_re,
|
||||||
b64enc,
|
b64enc,
|
||||||
dedent,
|
dedent,
|
||||||
|
has_resource,
|
||||||
min_ex,
|
min_ex,
|
||||||
pybin,
|
pybin,
|
||||||
termsize,
|
termsize,
|
||||||
|
@ -325,8 +326,7 @@ def ensure_locale() -> None:
|
||||||
|
|
||||||
|
|
||||||
def ensure_webdeps() -> None:
|
def ensure_webdeps() -> None:
|
||||||
ap = os.path.join(E.mod, "web/deps/mini-fa.woff")
|
if has_resource(E, "web/deps/mini-fa.woff"):
|
||||||
if os.path.exists(ap):
|
|
||||||
return
|
return
|
||||||
|
|
||||||
warn(
|
warn(
|
||||||
|
|
Loading…
Reference in a new issue