@@ -158,7 +158,7 @@ def get_uc_driver_version():
158
158
if os .path .exists (LOCAL_UC_DRIVER ):
159
159
try :
160
160
output = subprocess .check_output (
161
- "%s --version" % LOCAL_UC_DRIVER , shell = True
161
+ ' "%s" --version' % LOCAL_UC_DRIVER , shell = True
162
162
)
163
163
if IS_WINDOWS :
164
164
output = output .decode ("latin1" )
@@ -2276,7 +2276,7 @@ def get_local_driver(
2276
2276
if os .path .exists (LOCAL_EDGEDRIVER ):
2277
2277
try :
2278
2278
output = subprocess .check_output (
2279
- "%s --version" % LOCAL_EDGEDRIVER , shell = True
2279
+ ' "%s" --version' % LOCAL_EDGEDRIVER , shell = True
2280
2280
)
2281
2281
if IS_WINDOWS :
2282
2282
output = output .decode ("latin1" )
@@ -2912,7 +2912,7 @@ def get_local_driver(
2912
2912
if os .path .exists (LOCAL_CHROMEDRIVER ):
2913
2913
try :
2914
2914
output = subprocess .check_output (
2915
- "%s --version" % LOCAL_CHROMEDRIVER , shell = True
2915
+ ' "%s" --version' % LOCAL_CHROMEDRIVER , shell = True
2916
2916
)
2917
2917
if IS_WINDOWS :
2918
2918
output = output .decode ("latin1" )
@@ -2926,7 +2926,7 @@ def get_local_driver(
2926
2926
elif path_chromedriver :
2927
2927
try :
2928
2928
output = subprocess .check_output (
2929
- "%s --version" % path_chromedriver , shell = True
2929
+ ' "%s" --version' % path_chromedriver , shell = True
2930
2930
)
2931
2931
if IS_WINDOWS :
2932
2932
output = output .decode ("latin1" )
0 commit comments