- Caching is working nicely now.

This commit is contained in:
ccremers 2005-03-02 15:09:29 +00:00
parent 6e77e7cf93
commit 1b4e00b49f

View File

@ -76,17 +76,12 @@ def eval (argumentstring, inputstring):
h.flush() h.flush()
(status, scout) = scythercall (argumentstring, h.name) (status, scout) = scythercall (argumentstring, h.name)
h.close() h.close()
if not(status <= 0 or status == 1):
# All is well
f = open(cachefile,'w')
f.write(scout)
f.close()
else:
print status
print scout
print h.name
sys.exit() # Write cache file even if it's wrong
f = open(cachefile,'w')
f.write(scout)
f.close()
return (status,scout) return (status,scout)