def read_dictionary(self):
config_dir = user_config_dir()
filename = os.path.join(config_dir, 'DNA.json')
if not os.path.exists(filename):
self.dictionary = self.create_test_dict()
else:
with open(filename) as json_file:
data = json.load(json_file)
self.dictionary = data
self.vps = self.dictionary['VPS']
评论列表
文章目录