Fix path for the file opening

This commit is contained in:
Thomas S Hatch 2011-03-08 23:42:45 -07:00
parent b85075d94a
commit 07cb8ec97b

View file

@ -221,7 +221,7 @@ class ReqServer(threading.Thread):
hn_dir = os.path.join(jid_dir, load['hostname'])
if not os.path.isdir(hn_dir):
os.makedirs(hn_dir)
pickle.dump(load['return'], os.path.join(hn_dir, 'return.p'))
pickle.dump(load['return'], open(os.path.join(hn_dir, 'return.p'), 'w+'))
def publish(self, load):
'''