From 3b5ca8a450d84f060d9377467d8ec9d0189bb14e 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..7213b9f 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", ""): data = None else: data = get_data(srcdir=srcdir, outdir=outdir)