MCPcopy Index your code
hub / github.com/geekcomputers/Python / resource_path

Function resource_path

Street_Fighter/src/main.py:12–18  ·  view source on GitHub ↗
(relative_path)

Source from the content-addressed store, hash-verified

10
11# Helper Function for Bundled Assets
12def resource_path(relative_path):
13 try:
14 base_path = sys._MEIPASS
15 except Exception:
16 base_path = os.path.abspath(".")
17
18 return os.path.join(base_path, relative_path)
19
20
21mixer.init()

Callers 1

main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected