python file
1.file read
memory = 1024
try:
with open(NOVA_CONF, 'r') as f:
s = json.load(f)
memory = s.get('xxxx', 1024)
except Exception as err:
log.error("File Error:" + str(err))
memory = 1024
try:
with open(NOVA_CONF, 'r') as f:
s = json.load(f)
memory = s.get('xxxx', 1024)
except Exception as err:
log.error("File Error:" + str(err))