(path_to_file)
| 451 | else: |
| 452 | raise ValueError("specified sb3 archive doesn't contain project.json") |
| 453 | def read_sb3_file(path_to_file): |
| 454 | pb = ProjectBody() |
| 455 | pb.from_json(_load_sb3_file(path_to_file)) |
| 456 | return pb |
| 457 | def download_asset(asset_id_with_file_ext, *, filename=None, dir=""): |
| 458 | if not (dir.endswith("/") or dir.endswith("\\")): |
| 459 | dir = dir + "/" |
nothing calls this directly
no test coverage detected