MCPcopy
hub / github.com/wechaty/python-wechaty / cache_dir

Method cache_dir

src/wechaty/config.py:97–105  ·  view source on GitHub ↗

get the cache dir in the lazy loading mode Returns: str: the path of cache dir

(self)

Source from the content-addressed store, hash-verified

95 """
96 @property
97 def cache_dir(self) -> str:
98 """get the cache dir in the lazy loading mode
99
100 Returns:
101 str: the path of cache dir
102 """
103 path = os.environ.get("CACHE_DIR", '.wechaty')
104 os.makedirs(path, exist_ok=True)
105 return path
106
107 @property
108 def ui_dir(self) -> str:

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected