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

Function get_ext_dir

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

Source from the content-addressed store, hash-verified

31
32
33def get_ext_dir(subpath=None, mkdir=False):
34 dir = os.path.dirname(__file__)
35 if subpath is not None:
36 dir = os.path.join(dir, subpath)
37
38 dir = os.path.abspath(dir)
39
40 if mkdir and not os.path.exists(dir):
41 os.makedirs(dir)
42 return dir
43
44
45def get_comfy_dir(subpath=None, mkdir=False):

Callers 4

__init__.pyFile · 0.85
get_extension_configFunction · 0.85
install_jsFunction · 0.85
download_to_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected