示例#1
0
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
示例#2
0
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
示例#3
0
文件: __main__.py 项目: vpicavet/Roam
 def load(self):
     settingspath = self.path
     with open(settingspath, 'r') as f:
         self.settings = yaml.load(f)
示例#4
0
def load(path):
    with open(path, 'r') as f:
        global settings
        settings = yaml.load(f)
        global loaded_path
        loaded_path = path
示例#5
0
文件: config.py 项目: Kenyat1989/Roam
def load(path):
    with open(path, 'r') as f:
        global settings
        settings = yaml.load(f)
        global loaded_path
        loaded_path = path