Mercurial > hg > pyloader
comparison pyloader/factory.py @ 22:b16d6a204ac1
stub a command line entry point
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 06 Jun 2011 07:41:23 -0700 |
parents | 4f7c05630f36 |
children | 9b2ca32e7a36 |
comparison
equal
deleted
inserted
replaced
21:4f7c05630f36 | 22:b16d6a204ac1 |
---|---|
3 """ | 3 """ |
4 | 4 |
5 import cast | 5 import cast |
6 import loader | 6 import loader |
7 import os | 7 import os |
8 import sys | |
8 from ConfigParser import InterpolationMissingOptionError | 9 from ConfigParser import InterpolationMissingOptionError |
9 from ConfigParser import InterpolationSyntaxError | 10 from ConfigParser import InterpolationSyntaxError |
10 from ConfigParser import SafeConfigParser as ConfigParser | 11 from ConfigParser import SafeConfigParser as ConfigParser |
11 | 12 |
12 __all__ = ['CircularReferenceError', 'PyFactory', 'IniFactory'] | 13 __all__ = ['CircularReferenceError', 'PyFactory', 'IniFactory'] |
136 else: | 137 else: |
137 sect.setdefault('kwargs', {})[option] = value | 138 sect.setdefault('kwargs', {})[option] = value |
138 | 139 |
139 return config | 140 return config |
140 | 141 |
142 def main(args=sys.argv[1:]): | |
143 """command line entry point""" | |
144 | |
141 if __name__ == '__main__': | 145 if __name__ == '__main__': |
142 pass | 146 main() |