MCPcopy Create free account
hub / github.com/Tong89/smartNode / resource_path

Function resource_path

backend/core.py:65–70  ·  view source on GitHub ↗
(relative_path)

Source from the content-addressed store, hash-verified

63# 0. 核心算法库
64# ==========================================
65def resource_path(relative_path):
66 try:
67 base_path = sys._MEIPASS
68 except Exception:
69 base_path = os.path.abspath(".")
70 return os.path.join(base_path, relative_path)
71
72
73# ==========================================

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected