Beispiel #1
0
 def find_and_load(path, content):
     try:
         config_name = script_configs.read_name(path, content)
         if config_name == name:
             return script_configs.from_json(path, content, os_utils.is_pty_supported())
     except:
         LOGGER.exception('Could not load script config: ' + path)
Beispiel #2
0
    def add_name(path, content):
        try:
            return script_configs.read_name(path, content)

        except:
            logger = logging.getLogger("scriptServer")
            logger.exception("Could not load script name: " + path)
Beispiel #3
0
 def find_and_load(path, content):
     try:
         config_name = script_configs.read_name(path, content)
         if config_name == name:
             return script_configs.from_json(path, content, pty_supported)
     except:
         logger = logging.getLogger("scriptServer")
         logger.exception("Could not load script config: " + path)
Beispiel #4
0
        def find_and_load(path, content):
            try:
                json_object = json.loads(content)

                config_name = script_configs.read_name(path, json_object)
                if config_name == name:
                    return _load_script_config(path, json_object)
            except:
                LOGGER.exception('Could not load script config: ' + path)
    def add_name(path, content):
        try:
            return script_configs.read_name(path, content)

        except:
            LOGGER.exception('Could not load script name: ' + path)