git @ Cat's Eye Technologies Chrysoberyl / forks-article
Include forks in generated catalog. Chris Pressey 2 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
11 # encoding: UTF-8
22
33 import json
4 #from optparse import OptionParser
54 import os
65 import re
76 import sys
8
9 #sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), '..', 'src'))
10
11 #from chrysoberyl import commands
127
138
149 def create_shelf_catalog():
1813
1914 with open('distribution/distributions.json', 'r') as f:
2015 distributions = json.loads(f.read())
16
17 with open('distribution/forks.json', 'r') as f:
18 forks = json.loads(f.read())
19
20 distributions.update(forks)
2121
2222 infos = {}
2323 for (key, node) in sorted(distributions.iteritems()):