Commit 08835262 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team, ListWindows.load(): optional verbose argument

parent 0764e954
......@@ -331,13 +331,14 @@ class ListWindows:
with open(output, "w") as file:
json.dump(self, file, indent=2, default=self.toJson)
def load(self, file_path, pipeline):
def load(self, file_path, pipeline, verbose=True):
'''init listWindows with data file
Detects and selects the parser according to the file extension.'''
# name = file_path.split("/")[-1]
extension = file_path.split('.')[-1]
if verbose:
print "<==", file_path, "\t",
......@@ -354,10 +355,12 @@ class ListWindows:
if pipeline:
# renaming, private pipeline
f = '/'.join(file_path.split('/')[2:-1])
if verbose:
print "[%s]" % f
f = file_path
if verbose:
time = os.path.getmtime(file_path)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment