[refactoring] and solve path_out bug
This commit is contained in:
+4
-4
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user