++fixes
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
c1e7731992
commit
e5e2fb866c
3 changed files with 15 additions and 21 deletions
|
|
@ -47,11 +47,10 @@ class Context:
|
|||
if base_path:
|
||||
self.base_path = base_path
|
||||
else:
|
||||
self.base_path =
|
||||
os.path.abspath(
|
||||
os.path.join(os.path.dirname(__file__),
|
||||
os.pardir,
|
||||
os.pardir))
|
||||
self.base_path = os.path.abspath(
|
||||
os.path.join(os.path.dirname(__file__),
|
||||
os.pardir,
|
||||
os.pardir))
|
||||
|
||||
|
||||
# Local input directories
|
||||
|
|
@ -70,7 +69,7 @@ class Context:
|
|||
|
||||
# Local output directories
|
||||
if out_path:
|
||||
self.out_path = out_path:
|
||||
self.out_path = out_path
|
||||
else:
|
||||
self.out_path = os.path.join(tempfile.mkdtemp(), "out")
|
||||
|
||||
|
|
@ -92,7 +91,6 @@ class Context:
|
|||
# Create directories
|
||||
self.__init_out_paths()
|
||||
self.__init_remote_paths()
|
||||
self.__init_env()
|
||||
|
||||
def cleanup(self):
|
||||
# Do not use in __del__:
|
||||
|
|
@ -106,11 +104,6 @@ class Context:
|
|||
shutil.rmtree(self.cache_path)
|
||||
shutil.move(self.base_path, self.cache_path)
|
||||
|
||||
#def __init_env(self):
|
||||
# """Setup environment"""
|
||||
# os.environ['__cdist_out_path'] = self.out_path
|
||||
# os.environ['__cdist_base_path'] = self.base_path
|
||||
|
||||
def __init_out_paths(self):
|
||||
"""Initialise output directory structure"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue