@staticmethod
    def create_from_file(path):
        try:
            with open(path) as f:
                config = json.loads(f.read())
                return SystemModel(**config)
        except (__HOLE__, IOError) as e:
            msg = 'Failed finding or parsing config at %s.'
            raise SftpConfigException(msg % path, e)
dataset/ETHPy150Open spantaleev/sftpman/sftpman/model.py/SystemModel.create_from_file