Example #1
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)
Example #2
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)