Example #1
0
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)
Example #2
0
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)
Example #3
0
 def save(self):
     with open(self.path, 'w') as f:
         yaml.dump(data=self.settings, stream=f, default_flow_style=False)