[refactoring] and solve path_out bug

This commit is contained in:
Noe Brucy
2021-07-06 18:06:19 +02:00
parent a4d2be22d2
commit 3fe7f1ca0e
4 changed files with 21 additions and 21 deletions
+4 -4
View File
@@ -52,7 +52,7 @@ class BaseProcessor:
rules = {}
solve_self_dep = True
def __init__(self, path, path_out=None, params=None, tag=None):
def __init__(self, path, path_out=".", params=None, tag=None):
if params is None:
self.params = default_params()
elif type(params) == str:
@@ -60,15 +60,15 @@ class BaseProcessor:
else:
self.params = copy.deepcopy(params)
if tag is not None:
self.params.out.tag = tag
# Determining output directory
if path_out is None:
self.path_out = path
else:
self.path_out = path_out
if tag is not None:
self.params.out.tag = tag
def _log(self, string, status=""):
if self.params.process.verbose:
if len(status) > 0: