moved cache location to stadard user caching dir (#26)
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
e808ba1f7d
commit
70f44024f9
|
@ -97,7 +97,7 @@ class LocalCache(object):
|
|||
if not self.cache_path:
|
||||
self.cache_path = os.path.join(
|
||||
os.path.expanduser('~'),
|
||||
'.monitorstack.cache'
|
||||
'.cache/monitorstack.cache'
|
||||
)
|
||||
elif not self.cache_path.endswith('cache'):
|
||||
self.cache_path = '{}.cache'.format(self.cache_path)
|
||||
|
|
|
@ -37,7 +37,7 @@ class TestUtils(unittest.TestCase):
|
|||
|
||||
self.g_testfile = os.path.join(
|
||||
os.path.expanduser('~'),
|
||||
'.monitorstack.cache'
|
||||
'.cache/monitorstack.cache'
|
||||
)
|
||||
self.t_testfile = tempfile.mkdtemp()
|
||||
|
||||
|
|
Loading…
Reference in New Issue