Skip to content

Commit fc590a2

Browse files
authored
Merge pull request #47 from browserstack/LOC_4706
Check entire binary name for download step.
2 parents 0778e63 + 00d6035 commit fc590a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

browserstack/local_binary.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ def get_binary(self):
102102
dest_parent_dir = os.path.join(os.path.expanduser('~'), '.browserstack')
103103
if not os.path.exists(dest_parent_dir):
104104
os.makedirs(dest_parent_dir)
105-
bsfiles = [f for f in os.listdir(dest_parent_dir) if f.startswith('BrowserStackLocal')]
105+
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]
106107

107108
if len(bsfiles) == 0:
108109
binary_path = self.download()

0 commit comments

Comments
 (0)