From 7e3b0251fce6ec2aff650d12aa9b37fafb685804 Mon Sep 17 00:00:00 2001 From: Umut Date: Mon, 4 Oct 2021 14:27:15 +0300 Subject: [PATCH] fix(script): use shutil.rmtree instead of os.unlink to remove measurement scripts folder --- script/progress_tracker_utils/measure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/progress_tracker_utils/measure.py b/script/progress_tracker_utils/measure.py index 1afe36b25..006713d0b 100644 --- a/script/progress_tracker_utils/measure.py +++ b/script/progress_tracker_utils/measure.py @@ -3,6 +3,7 @@ import argparse import json import os import pathlib +import shutil import subprocess import urllib @@ -322,7 +323,7 @@ def main(): # Delete the modified scripts if the user doesn't care if not args.keep: - os.unlink(".benchmarks/scripts") + shutil.rmtree(".benchmarks/scripts", ignore_errors=True) print()