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

Function get_plugin_name_from_file

prepop_cache.py:83–85  ·  view source on GitHub ↗
(file_path: str)

Source from the content-addressed store, hash-verified

81ARGS = [GODOT_EXE, "--headless", "--path", STANDALONE_DIR]
82
83def get_plugin_name_from_file(file_path: str) -> str:
84 # get only the filename from the path
85 return os.path.basename(file_path).replace(".json", "")
86
87def get_asset_lib_plugin_name(plugin_name: str) -> str:
88 # get the immediate parent directory name + the file name - .json

Callers 1

generate_header_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected