Skip to content

Commit 9393899

Browse files
committed
key in options fix
1 parent 1d84d7a commit 9393899

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
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)

0 commit comments

Comments
 (0)