Skip to content

Commit

Permalink
Merge pull request #11 from browserstack/key_issue
Browse files Browse the repository at this point in the history
Key issue in options
  • Loading branch information
vedharish committed May 9, 2016
2 parents 1d84d7a + 2983bb4 commit 42abc4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion browserstack/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,21 @@ def _generate_cmd(self):
def start(self, **kwargs):
self.options = kwargs

if 'key' in self.options:
self.key = self.options['key']
del self.options['key']

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

if 'logfile' in self.options:
self.local_logfile_path = self.options['logfile']
del self.options['logfile']

if "onlyCommand" in kwargs and kwargs["onlyCommand"]:
if "onlyCommand" in kwargs and kwargs["onlyCommand"]:
return

self.proc = subprocess.Popen(self._generate_cmd(), stdout=subprocess.PIPE)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
setup(
name = 'browserstack-local',
packages = ['browserstack'],
version = '0.3.0',
version = '0.3.1',
description = 'Python bindings for Browserstack Local',
author = 'BrowserStack',
author_email = '[email protected]',
url = 'https://github.com/browserstack/browserstack-local-python',
download_url = 'https://github.com/browserstack/browserstack-local-python/archive/v0.1.0.tar.gz',
download_url = 'https://github.com/browserstack/browserstack-local-python/archive/master.zip',
keywords = ['BrowserStack', 'Local', 'selenium', 'testing'],
classifiers = [],
)
Expand Down

0 comments on commit 42abc4a

Please sign in to comment.