Skip to content

Commit 488236e

Browse files
committed
Adding a small patch to fix loading the app with absolute windows paths;
1 parent 6e789d5 commit 488236e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/appium_lib/driver.rb

+3
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ def absolute_app_path
434434
return @app_path
435435
end
436436

437+
# if it starts with [A-Z]:\ then it's a windows absolute path
438+
return @app_path if @app_path.match(/^[a-zA-Z]:\\/)
439+
437440
# if it doesn't contain a slash then it's a bundle id
438441
return @app_path unless @app_path.match(/[\/\\]/)
439442

0 commit comments

Comments
 (0)