cdist-backup/module/cdist/path.py
Nico Schottelius b72fab3c01 begin split into path module
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-23 17:00:48 +02:00

11 lines
314 B
Python

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)