diff --git a/browserstack/local.py b/browserstack/local.py index abd2312..07d92c4 100644 --- a/browserstack/local.py +++ b/browserstack/local.py @@ -3,8 +3,8 @@ from browserstack.bserrors import BrowserStackLocalError class Local: - def __init__(self, key=os.environ['BROWSERSTACK_ACCESS_KEY'], binary_path=None): - self.key = key + def __init__(self, key=None, binary_path=None): + self.key = os.environ['BROWSERSTACK_ACCESS_KEY'] if 'BROWSERSTACK_ACCESS_KEY' in os.environ else key self.options = None self.local_logfile_path = os.path.join(os.getcwd(), 'local.log') diff --git a/setup.py b/setup.py index 2049746..06cf748 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name = 'browserstack-local', packages = ['browserstack'], - version = '1.0.0', + version = '1.1.0', description = 'Python bindings for Browserstack Local', author = 'BrowserStack', author_email = 'support@browserstack.com',