Update test_workflow.py

This commit is contained in:
Leon 2023-06-03 00:10:28 +02:00 committed by GitHub
parent 4e81361ced
commit 4db5ce60c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ import undetected_chromedriver as uc
# due to the randomneess of the chrome install path on the runner when running action, i have to find it manufally # due to the randomneess of the chrome install path on the runner when running action, i have to find it manufally
tmp = Path('/tmp') tmp = Path('/tmp')
for item in tmp.glob('chrome*'): for item in tmp.glob('chrome*'):
print(item)
time.sleep(1)
if item.is_dir(): if item.is_dir():
path_list = os.environ['PATH'].split(os.pathsep) path_list = os.environ['PATH'].split(os.pathsep)
path_list.insert(0, str(item)) path_list.insert(0, str(item))