git ssb

1+

Zach! / kriya-helper



Tree: d40d4eb7917990aa2e886b6827155eef378f567d

Files: d40d4eb7917990aa2e886b6827155eef378f567d / asanas / gather_kriyas.py

470 bytesRaw
1import os
2import collections
3import configparser
4#Lists for Kriyas and where to find them
5kriya_dict = collections.OrderedDict()
6kriya_list = []
7
8def main():
9 for file in os.listdir('kriyas'):
10 kriya = 'kriyas/{}'.format(file)
11 config = configparser.ConfigParser()
12 config.read(kriya)
13 for section in config.sections():
14 kriya_dict[section] = kriya
15 kriya_list.append(section)
16
17if __name__ == "__main__":
18 main()
19
20

Built with git-ssb-web