forked from ungleich-public/cdist
begin split into path module
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
f4da3b96d8
commit
b72fab3c01
2 changed files with 11 additions and 0 deletions
0
module/cdist/__init__.py
Normal file
0
module/cdist/__init__.py
Normal file
11
module/cdist/path.py
Normal file
11
module/cdist/path.py
Normal file
|
@ -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)
|
Loading…
Reference in a new issue