def config(self): configpath = os.path.abspath(self.configfile) if not os.path.exists(configpath): log.error("Config '%s' doesn't exist." % configpath) sys.exit(1) config = Config(configpath, bbb_config=True) config.parse() return config
def _create_config(self, contents, path=None): contents = StringIO(contents) config = Config(contents, path=path) config._add_massager( StartupScriptMassager('instance', 'startup_script')) return config.parse()