From 5cbe23166adaeee0839a3e873667fd0c4b8a6cc9 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Wed, 28 Sep 2022 09:56:09 -0700 Subject: [PATCH] Avoid crash under Windows --- scripts/wk/hw/benchmark.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/wk/hw/benchmark.py b/scripts/wk/hw/benchmark.py index fd8e86db..80dc0c01 100644 --- a/scripts/wk/hw/benchmark.py +++ b/scripts/wk/hw/benchmark.py @@ -2,10 +2,10 @@ # vim: sts=2 sw=2 ts=2 import logging +import platform from subprocess import PIPE, STDOUT -from wk import graph from wk.cfg.hw import ( IO_ALT_TEST_SIZE_FACTOR, IO_BLOCK_SIZE, @@ -26,6 +26,8 @@ from wk.std import ( strip_colors, color_string, ) +if platform.system() != 'Windows': + from wk import graph # STATIC VARIABLES