()
| 159 | |
| 160 | |
| 161 | def prepop_cache(): |
| 162 | if not os.path.exists(GODOT_EXE): |
| 163 | raise FileNotFoundError(f"Godot executable not found: {GODOT_EXE}") |
| 164 | if not os.path.exists(TEMP_CACHE_DIR): |
| 165 | os.makedirs(TEMP_CACHE_DIR) |
| 166 | # set the environment variable |
| 167 | os.environ[CACHE_DIR_ENV_VAR] = TEMP_CACHE_DIR |
| 168 | args: list[str] = ARGS.copy() |
| 169 | for plugin in PLUGINS_TO_PREPOP: |
| 170 | args.append(f"--plcache={plugin}") |
| 171 | subprocess.run(args) |
| 172 | |
| 173 | |
| 174 | def get_json_dicts_from_dir(dir_path: str) -> list[tuple[str, object]]: |
no test coverage detected