Update __init__.py

This commit is contained in:
Leon 2020-03-03 15:30:48 +01:00 committed by GitHub
parent e5c00010c4
commit 4d253ef037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -196,6 +196,8 @@ class ChromeDriverManager(object):
with zipfile.ZipFile(zip_name) as zf:
zf.extract(self._exe_name)
os.remove(zip_name)
if sys.platform != 'win32':
os.chmod(self._exe_name, 0o755)
return self._exe_name