browserstack/browserstack-local-python

Unable to set local binary path

Closed this issue · 2 comments

Hey, setting the local binary path with the "binarypath" option leads to an error:
"NameError: global name 'binary_path' is not defined"

The culprit seems to be this block in local.py

if 'binarypath' in self.options:
    self.binary_path = binary_path
    del self.options['binarypath']
else:
    self.binary_path = LocalBinary().get_binary()

I believe changing the second line to self.binary_path = self.options['binarypath'] will fix this issue.

Please fix or let me know if there is another solution.

Thank you!

Hey,
Thanks for pointing this out. We will be deploying the fix in some time and let you know.

Updated.

You can update your package with pip install -U browserstack-local