cic-cli/cic/output.py

17 lines
262 B
Python
Raw Normal View History

# standard imports
import os
class KVWriter:
def __init__(self, path):
os.stat(path)
self.path = path
def write(self, k, v):
fp = os.path.join(self.path, str(k))
f = open(fp, 'w')
f.write(v)
f.close()