We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0778e63 + 00d6035 commit fc590a2Copy full SHA for fc590a2
browserstack/local_binary.py
@@ -102,7 +102,8 @@ def get_binary(self):
102
dest_parent_dir = os.path.join(os.path.expanduser('~'), '.browserstack')
103
if not os.path.exists(dest_parent_dir):
104
os.makedirs(dest_parent_dir)
105
- bsfiles = [f for f in os.listdir(dest_parent_dir) if f.startswith('BrowserStackLocal')]
+ binary_name = 'BrowserStackLocal.exe' if self.is_windows else 'BrowserStackLocal'
106
+ bsfiles = [f for f in os.listdir(dest_parent_dir) if f == binary_name]
107
108
if len(bsfiles) == 0:
109
binary_path = self.download()
0 commit comments