MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / prepop_cache

Function prepop_cache

prepop_cache.py:161–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159
160
161def 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
174def get_json_dicts_from_dir(dir_path: str) -> list[tuple[str, object]]:

Callers 1

prepop_cache.pyFile · 0.85

Calls 2

copyMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected