def load(path): with open(path, 'r') as f: global settings settings = yaml.load(f) if settings is None: settings = {} global loaded_path loaded_path = path
def load(path): with open(path, "r") as f: global settings settings = yaml.load(f) if settings is None: settings = {} global loaded_path loaded_path = path
def load(self): settingspath = self.path with open(settingspath, 'r') as f: self.settings = yaml.load(f)
def load(path): with open(path, 'r') as f: global settings settings = yaml.load(f) global loaded_path loaded_path = path