From 99767629153cd924eb30dcd807dc77f5f560baec Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Fri, 11 Oct 2024 01:04:12 +0100 Subject: [PATCH] PETRIC_SKIP_DATA option - part of #117 --- petric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/petric.py b/petric.py index d86ce77..41bfa5d 100755 --- a/petric.py +++ b/petric.py @@ -320,7 +320,7 @@ def get_image(fname): if __name__ != "__main__": # load up first data-set for people to play with srcdir, outdir, metrics = data_dirs_metrics[0] - if srcdir is None: + if srcdir is None or os.getenv("PETRIC_SKIP_DATA", False): data = None else: data = get_data(srcdir=srcdir, outdir=outdir)