def get_themes(self):
path = self.themes_path()
themes = []
for c in glob.glob1(path, '*.json'):
try:
data = json.load(open(os.path.join(path, c)))
except:
continue
data['path'] = os.path.join(path, c).replace('\\','/')
themes.append(data)
return themes
评论列表
文章目录