From 26fad6f23ce1b656618eb64e1d367cf5757cf79f Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 23 Sep 2011 19:13:36 +0200 Subject: [PATCH] correct base dir, now relative to lib Signed-off-by: Nico Schottelius --- lib/cdist/path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cdist/path.py b/lib/cdist/path.py index 5d72a23a..69bc5496 100644 --- a/lib/cdist/path.py +++ b/lib/cdist/path.py @@ -38,7 +38,7 @@ class Path: if base_dir: self.base_dir = base_dir else: - self.base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) + self.base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) self.temp_dir = tempfile.mkdtemp()