comparison makeitso/makeitso.py @ 105:67b50417b8d1

stub out loading api templates; this wont work, however, since one is in the middle of a module trying to load a module that depends on the module you are in
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 11 Jan 2011 19:23:53 -0800
parents e059a58ea23c
children 1295df1700a4
comparison
equal deleted inserted replaced
104:e059a58ea23c 105:67b50417b8d1
14 import urllib 14 import urllib
15 # TODO: may have to use urllib2.urlopen to get reasonable timeouts 15 # TODO: may have to use urllib2.urlopen to get reasonable timeouts
16 16
17 from ConfigParser import RawConfigParser 17 from ConfigParser import RawConfigParser
18 from optparse import OptionParser 18 from optparse import OptionParser
19
20 # get templates from pkg_resources
21 # (MakeItSo! and [TODO] pastescript templates)
22 makeitso_templates = {}
23 try:
24 from pkg_resources import iter_entry_points
25 for i in iter_entry_points('makeitso.templates'):
26 pass # :(
27 except ImportError:
28 pass
19 29
20 # URL of -this file- 30 # URL of -this file-
21 location = 'http://k0s.org/mozilla/hg/MakeItSo/raw-file/tip/makeitso/makeitso.py' 31 location = 'http://k0s.org/mozilla/hg/MakeItSo/raw-file/tip/makeitso/makeitso.py'
22 32
23 ### import tempita 33 ### import tempita