Permalink
Browse files

giwebkit: style

  • Loading branch information...
1 parent 89fdbbf commit 7dbc5ef9427c7edca93b963de95f1c97e72a9944 C Anthony Risinger committed Aug 25, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 pyjs/runners/__init__.py
View
@@ -5,10 +5,14 @@
logging.getLogger(__name__).setLevel(logging.DEBUG)
logger = logging.getLogger(__name__)
+from pprint import pformat
from os import path
import ConfigParser
+default_conf = path.join(path.expanduser('~'), '.pyjd', 'pyjdrc')
+
+
class RunnerManager(object):
_platforms = {
@@ -30,15 +34,15 @@ def __init__(self):
self._conf = self._conf.copy()
self._listeners = []
- def set_conf(self, rc=path.join(path.expanduser('~'), '.pyjd', 'pyjdrc')):
+ def set_conf(self, rc=default_conf):
conf = self._conf
cf = ConfigParser.ConfigParser()
cf.read(rc)
if cf.has_section('gui'):
conf.update(dict(cf.items('gui')))
conf.setdefault('engine', conf['runner'])
conf['runner'] = conf['engine']
- logger.info('conf: %s', conf)
+ logger.info('conf:\n%s', pformat(conf))
def set_runner(self, runner=None):
if runner is None:

0 comments on commit 7dbc5ef

Please sign in to comment.