def on_start(self): load_from_file = CFG.get("load_from_file", None) if load_from_file: if os.path.exists(load_from_file): self.load_from_files(self.directory_path, [load_from_file]) else: print "LoadConfiguration: Error couldn't find the file path\n" else: # load from all files self.load_object_model_interface() self.load_service_interface() self.load_resource_configuration()