fix some tests and fix home_dir lookup
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
1177286d4e
commit
69a3844332
2 changed files with 16 additions and 10 deletions
|
|
@ -54,7 +54,7 @@ class Local(object):
|
|||
|
||||
def _init_home_dir(self):
|
||||
if 'HOME' in os.environ:
|
||||
self.home_dir = os.environ['HOME']
|
||||
self.home_dir = os.path.join(os.environ['HOME'], ".cdist")
|
||||
else:
|
||||
self.home_dir = None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue