()
| 329 | |
| 330 | |
| 331 | def 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 = """ |
| 336 | Error: Missing pywebio.js library for frontend page. |
| 337 | This may be because you cloned or downloaded the project directly from the Git repository. |
| 338 | |
| 339 | You Can: |
| 340 | * Manually build the pywebio.js file. See `webiojs/README.md` for more info. |
| 341 | OR |
| 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 | |
| 348 | def parse_file_size(size): |
no outgoing calls
no test coverage detected
searching dependent graphs…