Skip to content

Commit 42abc4a

Browse files
committed
Merge pull request #11 from browserstack/key_issue
Key issue in options
2 parents 1d84d7a + 2983bb4 commit 42abc4a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

browserstack/local.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,21 @@ def _generate_cmd(self):
2626
def start(self, **kwargs):
2727
self.options = kwargs
2828

29+
if 'key' in self.options:
30+
self.key = self.options['key']
31+
del self.options['key']
32+
2933
if 'binarypath' in self.options:
3034
self.binary_path = binary_path
35+
del self.options['binarypath']
3136
else:
3237
self.binary_path = LocalBinary().get_binary()
3338

3439
if 'logfile' in self.options:
3540
self.local_logfile_path = self.options['logfile']
3641
del self.options['logfile']
3742

38-
if "onlyCommand" in kwargs and kwargs["onlyCommand"]:
43+
if "onlyCommand" in kwargs and kwargs["onlyCommand"]:
3944
return
4045

4146
self.proc = subprocess.Popen(self._generate_cmd(), stdout=subprocess.PIPE)

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
setup(
33
name = 'browserstack-local',
44
packages = ['browserstack'],
5-
version = '0.3.0',
5+
version = '0.3.1',
66
description = 'Python bindings for Browserstack Local',
77
author = 'BrowserStack',
88
author_email = '[email protected]',
99
url = 'https://github.com/browserstack/browserstack-local-python',
10-
download_url = 'https://github.com/browserstack/browserstack-local-python/archive/v0.1.0.tar.gz',
10+
download_url = 'https://github.com/browserstack/browserstack-local-python/archive/master.zip',
1111
keywords = ['BrowserStack', 'Local', 'selenium', 'testing'],
1212
classifiers = [],
1313
)

0 commit comments

Comments
 (0)