Skip to content

Commit

Permalink
PETRIC_SKIP_DATA option
Browse files Browse the repository at this point in the history
- part of #117
  • Loading branch information
casperdcl committed Oct 11, 2024
1 parent 0f79b70 commit 9976762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion petric.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9976762

Please sign in to comment.