get the cache dir in the lazy loading mode Returns: str: the path of cache dir
(self)
| 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: |