MCPcopy
hub / github.com/pythongosssss/ComfyUI-Custom-Scripts / get_comfy_dir

Function get_comfy_dir

pysssss.py:45–54  ·  view source on GitHub ↗
(subpath=None, mkdir=False)

Source from the content-addressed store, hash-verified

43
44
45def get_comfy_dir(subpath=None, mkdir=False):
46 dir = os.path.dirname(inspect.getfile(PromptServer))
47 if subpath is not None:
48 dir = os.path.join(dir, subpath)
49
50 dir = os.path.abspath(dir)
51
52 if mkdir and not os.path.exists(dir):
53 os.makedirs(dir)
54 return dir
55
56
57def get_web_ext_dir():

Callers 1

get_web_ext_dirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected