check for dirname on --clean

This commit is contained in:
Paul Gauthier 2023-06-27 07:52:48 -07:00
parent 7736289309
commit 29d60b9ddb

View file

@ -63,6 +63,10 @@ def main(
if len(dirname.parts) == 1: if len(dirname.parts) == 1:
dirname = BENCHMARK_DNAME / dirname dirname = BENCHMARK_DNAME / dirname
if clean and not dirname.exists():
print(f"--clean requires that {dirname} exists")
return
now = datetime.datetime.now() now = datetime.datetime.now()
now = now.strftime("%Y-%m-%d-%H-%M--") now = now.strftime("%Y-%m-%d-%H-%M--")