diff --git a/ha4t/__init__.py b/ha4t/__init__.py index c90e52f..19c4fe8 100644 --- a/ha4t/__init__.py +++ b/ha4t/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.0.6" +__version__ = "0.0.7" __all__ = ["__version__", "connect", "device", "Device", "screen_size"] import json @@ -46,6 +46,8 @@ def connect(device_serial=None, android_package_name=None, device_serial = _CF.DEVICE_SERIAL if not platform: platform = _CF.PLATFORM + else: + _CF.PLATFORM = platform device.connect(platform, device_serial) screen_size = device.driver.window_size() _CF.SCREEN_WIDTH, _CF.SCREEN_HEIGHT = screen_size diff --git a/setup.py b/setup.py index b0d3c3a..080e3b7 100644 --- a/setup.py +++ b/setup.py @@ -48,7 +48,7 @@ def parse_requirements(filename): long_description_content_type="text/markdown", license='Apache License 2.0', url="https://github.com/exuils/HA4T", - install_requires=parse_requirements(r'D:\projects\HA4T\requirements.txt'), + install_requires=parse_requirements(r'D:\project\nico\HA4T\requirements.txt'), packages=find_packages(exclude=("tests",)), keywords=['automation', 'automated-test', 'game', 'android', 'ios', "hybrid-app"], extras_require={