From 70f44024f9853f189ca4038848885abc795814c2 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Sun, 19 Mar 2017 20:24:45 -0500 Subject: [PATCH] moved cache location to stadard user caching dir (#26) Signed-off-by: Kevin Carter --- monitorstack/utils/__init__.py | 2 +- tests/test_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/monitorstack/utils/__init__.py b/monitorstack/utils/__init__.py index a1df1bb..ce50f34 100644 --- a/monitorstack/utils/__init__.py +++ b/monitorstack/utils/__init__.py @@ -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) diff --git a/tests/test_utils.py b/tests/test_utils.py index fe9cb14..c1a2648 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -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()