Commit e79b6d1c authored by Evan Simpson's avatar Evan Simpson

Make client caches respect CLIENT_HOME

parent 88c9cabe
...@@ -144,7 +144,7 @@ file 0 and file 1. ...@@ -144,7 +144,7 @@ file 0 and file 1.
""" """
__version__ = "$Revision: 1.13 $"[11:-2] __version__ = "$Revision: 1.14 $"[11:-2]
import os, tempfile import os, tempfile
from struct import pack, unpack from struct import pack, unpack
...@@ -164,8 +164,10 @@ class ClientCache: ...@@ -164,8 +164,10 @@ class ClientCache:
if client: if client:
# Create a persistent cache # Create a persistent cache
if var is None: if var is None:
try: var=os.path.join(INSTANCE_HOME,'var') try: var=CLIENT_HOME
except: var=os.getcwd() except:
try: var=os.path.join(INSTANCE_HOME,'var')
except: var=os.getcwd()
# Get the list of cache file names # Get the list of cache file names
self._p=p=map(lambda i, p=storage, var=var, c=client: self._p=p=map(lambda i, p=storage, var=var, c=client:
......
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