Browse Source

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

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
Kevin Carter 2 years ago
parent
commit
70f44024f9
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      monitorstack/utils/__init__.py
  2. 1
    1
      tests/test_utils.py

+ 1
- 1
monitorstack/utils/__init__.py View File

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

+ 1
- 1
tests/test_utils.py View File

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

Loading…
Cancel
Save