Mercurial > pyntnclick
comparison pyntnclick/main.py @ 795:42cfafa20437 pyntnclick
Add the rest of the commit
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sun, 27 Jan 2013 13:01:09 +0200 |
parents | bdaffaa8b6bf |
children | 5ec7905b2365 |
comparison
equal
deleted
inserted
replaced
794:6b89fa491b70 | 795:42cfafa20437 |
---|---|
167 sys.exit(0) | 167 sys.exit(0) |
168 if self.constants.debug and opts.rect_drawer: | 168 if self.constants.debug and opts.rect_drawer: |
169 if opts.scene is None: | 169 if opts.scene is None: |
170 print 'Need to supply a scene to use the rect drawer' | 170 print 'Need to supply a scene to use the rect drawer' |
171 sys.exit(1) | 171 sys.exit(1) |
172 gettext.bindtextdomain('pyntnclick_tools', | |
173 self.resource.get_resource_path('locale')) | |
172 make_rect_display() | 174 make_rect_display() |
173 try: | 175 try: |
174 self.engine = RectEngine(self, opts.detail) | 176 self.engine = RectEngine(self, opts.detail) |
175 except RectDrawerError, e: | 177 except RectDrawerError, e: |
176 print 'RectDrawer failed with: %s' % e | 178 print 'RectDrawer failed with: %s' % e |