def save(path=None): """ Save the settings to disk. The last path is used if no path is given. :param path: :return: """ if not path: path = loaded_path with open(path, 'w') as f: yaml.dump(data=settings, stream=f, default_flow_style=False)
def save(path=None): """ Save the settings to disk. The last path is used if no path is given. :param path: :return: """ if not path: path = loaded_path with open(path, "w") as f: yaml.dump(data=settings, stream=f, default_flow_style=False)
def save(self): with open(self.path, 'w') as f: yaml.dump(data=self.settings, stream=f, default_flow_style=False)