~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/config/__init__.py

  • Committer: William Grant
  • Date: 2009-04-28 07:22:03 UTC
  • Revision ID: grantw@unimelb.edu.au-20090428072203-j5ratziusj3kv4tq
Allow template string interpolation in the config.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
            confdir = search_confdir()
83
83
            conffile = os.path.join(confdir, 'ivle.conf')
84
84
            super(Config, self).__init__(infile=conffile, configspec=specfile,
 
85
                                         interpolation='template',
85
86
                                         *args, **kwargs)
86
87
            # XXX This doesn't raise errors if it doesn't validate
87
88
            self.validate(Validator())