From 2786c701f0264de80aed09d0575fa89788067799 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 20 Nov 2009 13:01:39 +0100 Subject: [PATCH] fix init code for db --- oxlib/cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oxlib/cache.py b/oxlib/cache.py index ec47b5f..a63182a 100644 --- a/oxlib/cache.py +++ b/oxlib/cache.py @@ -109,8 +109,8 @@ def _getCacheBase(): def _getCacheDB(): path = _getCacheBase() - if not os.path.exists(os.path.dirname(path)): - os.makedirs(os.path.dirname(path)) + if not os.path.exists(path): + os.makedirs(path) return os.path.join(path, "cache.sqlite") def _connectDb():