From b72fab3c01804b19f00744321f8e8e854e10c290 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 23 Sep 2011 17:00:48 +0200 Subject: [PATCH] begin split into path module Signed-off-by: Nico Schottelius --- module/cdist/__init__.py | 0 module/cdist/path.py | 11 +++++++++++ 2 files changed, 11 insertions(+) create mode 100644 module/cdist/__init__.py create mode 100644 module/cdist/path.py diff --git a/module/cdist/__init__.py b/module/cdist/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/module/cdist/path.py b/module/cdist/path.py new file mode 100644 index 00000000..37d92940 --- /dev/null +++ b/module/cdist/path.py @@ -0,0 +1,11 @@ +class Path: + """Class that handles path related configurations""" + + def __init__(self, home=None): + if home: + self.base_dir = home + else: + self.base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) + + + print("Base:" + self.base_dir)