Make sure loom store always exists
@@ -133,7 +133,9 @@ class LoomMetamodel(metamodel.IBayesDBMetamodel):
self.loom_prefix = loom_prefix
self.loom_store_path = loom_store_path
if self.loom_store_path is None:
- self.loom_store_path = os.path.join(os.path.expanduser('~'), 'loomstore')
+ self.loom_store_path = os.path.join(os.path.expanduser('~'), 'tmp', 'bayeslite', 'loomstore')
+ if not os.path.isdir(self.loom_store_path):
+ os.makesdir(self.loom_store_path)
def name(self):
