From 3870962adbd54e942d5e4f9ed78f64f3f47b8758 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Tue, 4 Dec 2012 17:50:32 +0800 Subject: [PATCH] Fixed wrong check for cache path --- lib/workplace.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/workplace.py b/lib/workplace.py index 585942e..94677fa 100644 --- a/lib/workplace.py +++ b/lib/workplace.py @@ -42,14 +42,14 @@ class Workplace(object): if dataDir == None: dataDir = C.get('dataDir') - if not os.path.isdir(path): - raise Exception('Directory %s not found' % path) - # Directory paths self.path = os.path.abspath(os.path.realpath(os.path.expanduser(path))) self.cache = os.path.abspath(os.path.realpath(os.path.expanduser(C.get('dirs.mdk')))) self.www = os.path.abspath(os.path.realpath(os.path.expanduser(C.get('dirs.www')))) + if not os.path.isdir(self.path): + raise Exception('Directory %s not found' % self.path) + # Directory names self.wwwDir = wwwDir self.dataDir = dataDir -- 2.11.0