mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 07:02: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,
|
||||
b64enc,
|
||||
dedent,
|
||||
has_resource,
|
||||
min_ex,
|
||||
pybin,
|
||||
termsize,
|
||||
|
@ -325,8 +326,7 @@ def ensure_locale() -> None:
|
|||
|
||||
|
||||
def ensure_webdeps() -> None:
|
||||
ap = os.path.join(E.mod, "web/deps/mini-fa.woff")
|
||||
if os.path.exists(ap):
|
||||
if has_resource(E, "web/deps/mini-fa.woff"):
|
||||
return
|
||||
|
||||
warn(
|
||||
|
|
Loading…
Reference in a new issue