fix(script): use shutil.rmtree instead of os.unlink to remove measurement scripts folder

This commit is contained in:
Umut
2021-10-04 14:27:15 +03:00
parent 2515e9bf8a
commit 7e3b0251fc

View File

@@ -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()