def __init__(self, appdata, cnf={}, filepath=None): self.config = SKP_Config() config_file = os.path.join(appdata.app_config_dir, self.config.filename) self.config.load(config_file) self.config.update(cnf) self.appdata = appdata self.cms = self.appdata.app.default_cms self.loader = SKP_Loader() self.saver = SKP_Saver() if filepath is None: self.new() else: self.load(filepath)