MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / is_module

Function is_module

methods.py:309–316  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

307
308
309def is_module(path):
310 if not os.path.isdir(path):
311 return False
312 must_exist = ["register_types.h", "SCsub", "config.py"]
313 for f in must_exist:
314 if not os.path.exists(os.path.join(path, f)):
315 return False
316 return True
317
318
319def convert_custom_modules_path(path):

Callers 1

detect_modulesFunction · 0.85

Calls 2

joinMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected