Skip to content

Commit

Permalink
Merge pull request #693 from lago-project/paths
Browse files Browse the repository at this point in the history
Paths
  • Loading branch information
ovirt-infra authored Mar 21, 2018
2 parents abf7e9f + 4d303ee commit 1b34146
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lago/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def __init__(self, prefix_path):
Args:
prefix_path (str): Path to the directory of the prefix
"""
# self._prefix should be dropped in lago ver 0.44
self.prefix = prefix_path
self._prefix_path = prefix_path

def prefixed(self, *args):
Expand Down
6 changes: 6 additions & 0 deletions lago/prefix.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def __init__(self, prefix):
Args:
prefix (str): Path of the prefix
"""
# self._prefix should be dropped in lago ver 0.44
self._prefix = prefix
self._paths = paths.Paths(prefix)
self._virt_env = None
self._metadata = None
Expand Down Expand Up @@ -1403,6 +1405,10 @@ def virt_env(self):
def paths(self):
return self._paths

@paths.setter
def paths(self, val):
self._paths = val

def destroy(self):
"""
Destroy this prefix, running any cleanups and removing any files
Expand Down

0 comments on commit 1b34146

Please sign in to comment.