mirror of
https://github.com/status-im/desktop-qa-automation.git
synced 2025-02-24 10:08:22 +00:00
The name APP_DIR suggests the path is a directory, but it's not. Signed-off-by: Jakub Sokołowski <jakub@status.im>
22 lines
693 B
Python
22 lines
693 B
Python
import logging
|
|
|
|
from scripts.utils.system_path import SystemPath
|
|
from . import testpath, timeouts, testrail, squish, system
|
|
|
|
_logger = logging.getLogger(__name__)
|
|
|
|
try:
|
|
from ._local import *
|
|
except ImportError:
|
|
exit(
|
|
'Config file: "_local.py" not found in "./configs".\n'
|
|
'Please use template "_.local.default.py" to create file or execute command: \n'
|
|
rf'cp {testpath.ROOT}/configs/_local.default.py {testpath.ROOT}/configs/_local.py'
|
|
)
|
|
|
|
if AUT_PATH is None:
|
|
exit('Please add "AUT_PATH" in ./configs/_local.py')
|
|
if system.IS_WIN and 'bin' not in AUT_PATH:
|
|
exit('Please use launcher from "bin" folder in "AUT_PATH"')
|
|
AUT_PATH = SystemPath(AUT_PATH)
|