From 788c88595cf5c3b68e93fa808a0a4a49e15c68e8 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 20 Nov 2009 12:59:24 +0100 Subject: [PATCH] fix init code for db --- oxlib/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oxlib/cache.py b/oxlib/cache.py index 28fbde9..ec47b5f 100644 --- a/oxlib/cache.py +++ b/oxlib/cache.py @@ -110,7 +110,7 @@ def _getCacheBase(): def _getCacheDB(): path = _getCacheBase() if not os.path.exists(os.path.dirname(path)): - os.makedirs(os.path.exists(os.path.dirname(path))) + os.makedirs(os.path.dirname(path)) return os.path.join(path, "cache.sqlite") def _connectDb():