Update test_workflow.py

This commit is contained in:
Leon 2023-06-03 01:53:42 +02:00 committed by GitHub
parent dc56f5b33b
commit 04f45c0823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -23,9 +23,12 @@ def main():
if item.is_dir():
if 'chrome-' in item.name:
logger.info('adding %s to PATH' % str(item))
logger.info('current PATH:' % str(os.environ.get('PATH')))
path_list = os.environ['PATH'].split(os.pathsep)
path_list.insert(0, str(item))
os.environ['PATH'] = os.pathsep.join(path_list)
logger.info('new PATH:' % str(os.environ.get('PATH')))
break