Skip to content

Commit 6ace572

Browse files
tune
1 parent 523523d commit 6ace572

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/functional/ios/helper/options.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818

1919
from appium.options.ios import XCUITestOptions
2020

21-
# Returns abs path relative to this file and not cwd
22-
2321

2422
def PATH(p: str) -> str:
23+
"""Get the absolute path of a file relative to the folder where this file is located."""
2524
return os.path.abspath(os.path.join(os.path.dirname(__file__), p))
2625

2726

@@ -37,7 +36,7 @@ def make_options(app: Optional[str] = None) -> XCUITestOptions:
3736
options.simple_is_visible_check = True
3837

3938
if app is not None:
40-
options.app = PATH(os.path.join('../../..', 'apps', app))
39+
options.app = PATH(os.path.join('..', '..', '..', 'apps', app))
4140

4241
local_prebuilt_wda = os.getenv('LOCAL_PREBUILT_WDA')
4342
if local_prebuilt_wda:

0 commit comments

Comments
 (0)