MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / _get_data_file

Method _get_data_file

client/node/app.py:60–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58 self._data = {}
59
60 def _get_data_file(self):
61 data_dir = os.getenv("TCA_APP_DATA_DIR") # 支持通过环境变量指定app数据目录,存放节点NODE_UUID唯一值
62 if data_dir:
63 data_dir = os.path.abspath(data_dir)
64 else:
65 data_dir = os.path.join(settings.BASE_DIR, '.appdata')
66 if not os.path.exists(data_dir):
67 os.makedirs(data_dir)
68 return os.path.join(data_dir, 'appdata.json')
69
70 def _load_data(self):
71 if not self._data:

Callers 2

_load_dataMethod · 0.95
__setitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected