-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.py
More file actions
21 lines (18 loc) · 714 Bytes
/
index.py
File metadata and controls
21 lines (18 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import shutil
import os
import subprocess
def deleteDriver():
directory = 'dist' # Replace with the directory path you want to delete
if os.path.exists(directory):
shutil.rmtree(directory)
print(f"The directory '{directory}' has been deleted.")
else:
print(f"The directory '{directory}' does not exist.")
directory = 'build' # Replace with the directory path you want to delete
if os.path.exists(directory):
shutil.rmtree(directory)
print(f"The directory '{directory}' has been deleted.")
else:
print(f"The directory '{directory}' does not exist.")
subprocess.call("TASKKILL /f /IM CHROMEDRIVER.EXE")
# deleteDriver()