moved cache location to stadard user caching dir (#26)

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2017-03-19 20:24:45 -05:00 committed by Major Hayden
parent e808ba1f7d
commit 70f44024f9
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class LocalCache(object):
if not self.cache_path: if not self.cache_path:
self.cache_path = os.path.join( self.cache_path = os.path.join(
os.path.expanduser('~'), os.path.expanduser('~'),
'.monitorstack.cache' '.cache/monitorstack.cache'
) )
elif not self.cache_path.endswith('cache'): elif not self.cache_path.endswith('cache'):
self.cache_path = '{}.cache'.format(self.cache_path) self.cache_path = '{}.cache'.format(self.cache_path)

View File

@ -37,7 +37,7 @@ class TestUtils(unittest.TestCase):
self.g_testfile = os.path.join( self.g_testfile = os.path.join(
os.path.expanduser('~'), os.path.expanduser('~'),
'.monitorstack.cache' '.cache/monitorstack.cache'
) )
self.t_testfile = tempfile.mkdtemp() self.t_testfile = tempfile.mkdtemp()