comparison python/hgrc.py @ 352:eeff298cc922

more crap
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 27 Jun 2013 02:13:40 -0700
parents 971e7deca495
children ee8ab3de9c7f
comparison
equal deleted inserted replaced
351:971e7deca495 352:eeff298cc922
55 continue 55 continue
56 else: 56 else:
57 assert os.path.isfile(path), "%s is not a file, exiting" % path 57 assert os.path.isfile(path), "%s is not a file, exiting" % path
58 hgrc.append(path) 58 hgrc.append(path)
59 59
60 # construct ConfigParser objects and
61 # ensure that all the files are parseable
62 config = {}
63 for path in hgrc:
64 config['path'] = ConfigParser()
65 if isinstance(path, basestring):
66 config['path'].read(path)
67
60 if options.print: 68 if options.print:
61 # print the chosen hgrc paths and you're done 69 # print the chosen hgrc paths and you're done
62 print '\n'.join(hgrc) 70 print '\n'.join(hgrc)
63 parser.exit() 71 parser.exit()
64 72