Skip to content

Commit 81a5905

Browse files
committed
fixed
1 parent 70529b7 commit 81a5905

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/ReptileUtil.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ def _quit(driver):
247247
if os.path.exists(user_data):
248248
path = os.path.split(user_data)
249249
# 删除临时文件目录
250-
os.remove(path[0])
250+
import shutil
251+
shutil.rmtree(path[0])
252+
# os.rmdir(path[0])
251253

252254

253255
class SafeDriver:

0 commit comments

Comments
 (0)