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

Method ui_dir

src/wechaty/config.py:108–118  ·  view source on GitHub ↗

get the ui directory Returns: str: the path of the ui dir

(self)

Source from the content-addressed store, hash-verified

106
107 @property
108 def ui_dir(self) -> str:
109 """get the ui directory
110
111 Returns:
112 str: the path of the ui dir
113 """
114 default_ui_dir = os.path.join(
115 os.path.dirname(__file__),
116 'ui'
117 )
118 return os.environ.get("UI_DIR", default_ui_dir)
119
120 def get_environment_variable(
121 self,

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected