fix issue #149 (autoinstaller identified as chrome driver in virtualenv)

This commit is contained in:
mxrch
2021-01-18 15:17:46 +01:00
parent 6d2c500cbf
commit 4b34c42e4d
+1 -1
View File
@@ -90,7 +90,7 @@ def sanitize_location(location):
def get_driverpath():
tmprinter = TMPrinter()
drivers = [str(x.absolute()) for x in Path('.').rglob('chromedriver*')]
drivers = [str(x.absolute()) for x in Path('.').rglob('chromedriver*') if not "chromedriver_autoinstaller" in str(x)]
if drivers:
return drivers[0]
else: