MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / check_webio_js

Function check_webio_js

pywebio/utils.py:331–345  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329
330
331def check_webio_js():
332 js_files = [os.path.join(STATIC_PATH, 'js', i) for i in ('pywebio.js', 'pywebio.min.js')]
333 if any(os.path.isfile(f) for f in js_files):
334 return
335 error_msg = """
336Error: Missing pywebio.js library for frontend page.
337This may be because you cloned or downloaded the project directly from the Git repository.
338
339You Can:
340 * Manually build the pywebio.js file. See `webiojs/README.md` for more info.
341OR
342 * Use the following command to install the latest development version of PyWebIO:
343 pip3 install -U https://github.com/pywebio/PyWebIO/archive/dev-release.zip
344""".strip()
345 raise RuntimeError(error_msg)
346
347
348def parse_file_size(size):

Callers 2

_webio_handlerFunction · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…