diff --git a/looper/cli_looper.py b/looper/cli_looper.py index 82cb7997f..c53047d54 100644 --- a/looper/cli_looper.py +++ b/looper/cli_looper.py @@ -501,6 +501,12 @@ def add_subparser(cmd): version="{}".format(" ".join(subparsers.choices.keys())), ) + report_subparser.add_argument( + "--portable", + help="Makes html report portable.", + action="store_true", + ) + result.append(parser) return result diff --git a/looper/looper.py b/looper/looper.py index 32e97a0d8..65c25bbc5 100755 --- a/looper/looper.py +++ b/looper/looper.py @@ -547,12 +547,16 @@ def __call__(self, args): p = self.prj project_level = args.project + portable = args.portable + if project_level: psms = self.prj.get_pipestat_managers(project_level=True) print(psms) for name, psm in psms.items(): # Summarize will generate the static HTML Report Function - report_directory = psm.summarize(looper_samples=self.prj.samples) + report_directory = psm.summarize( + looper_samples=self.prj.samples, portable=portable + ) print(f"Report directory: {report_directory}") else: for piface_source_samples in self.prj._samples_by_piface( @@ -567,7 +571,9 @@ def __call__(self, args): print(psms) for name, psm in psms.items(): # Summarize will generate the static HTML Report Function - report_directory = psm.summarize(looper_samples=self.prj.samples) + report_directory = psm.summarize( + looper_samples=self.prj.samples, portable=portable + ) print(f"Report directory: {report_directory}")