aboutsummaryrefslogtreecommitdiff
path: root/rumba/model.py
diff options
context:
space:
mode:
Diffstat (limited to 'rumba/model.py')
-rw-r--r--rumba/model.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/rumba/model.py b/rumba/model.py
index 6303799..06d45ec 100644
--- a/rumba/model.py
+++ b/rumba/model.py
@@ -55,6 +55,12 @@ except OSError:
# Already there, nothing to do
pass
+cache_parent_dir = os.path.join(os.path.expanduser("~"), '.cache/')
+try:
+ os.mkdir(cache_parent_dir)
+except OSError:
+ # Already there, nothing to do
+ pass
cache_dir = os.path.join(os.path.expanduser("~"), '.cache/rumba/')
try:
os.mkdir(cache_dir)