def __init__(self, **config):
super(LocalKVProcessor, self).__init__(**config)<EOL>local_storage = config.get('<STR_LIT>', {})<EOL>kv_storage = local_storage.get('<STR_LIT>', {})<EOL>path = kv_storage.get('<STR_LIT:path>')<EOL>if path is None:<EOL><INDENT>path = tempfile.mkdtemp(prefix='<STR_LIT>')<EOL><DEDENT>path = osp.join(path, '<STR_LIT>')<EOL>self.__path = path<EOL>with self.__lock.write():<EOL><INDENT>if osp.exists(path):<EOL><INDENT>with open(path) as istr:<EOL><INDENT>self.__store = json.load(istr)<EOL><DEDENT><DEDENT><DEDENT>
:param path: Path to a json file where the KVS is written.