Commit 1dd9366a authored by Jim Fulton's avatar Jim Fulton

Changed to use the current working directory for persistent cache

files if no directory was specified in the var directory and if
INSTANCE_HOME isn't set.
parent 3c024507
......@@ -144,7 +144,7 @@ file 0 and file 1.
"""
__version__ = "$Revision: 1.12 $"[11:-2]
__version__ = "$Revision: 1.13 $"[11:-2]
import os, tempfile
from struct import pack, unpack
......@@ -163,7 +163,10 @@ class ClientCache:
if client:
# Create a persistent cache
if var is None: var=os.path.join(INSTANCE_HOME,'var')
if var is None:
try: var=os.path.join(INSTANCE_HOME,'var')
except: var=os.getcwd()
# Get the list of cache file names
self._p=p=map(lambda i, p=storage, var=var, c=client:
os.path.join(var,'c%s-%s-%s.zec' % (p, c, i)),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment