Skip to content
This repository has been archived by the owner on Mar 23, 2020. It is now read-only.

Fixed path of the example app - UICatalog.app #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions sample-code/examples/python/ios_complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ def setUp(self):
# set up appium
# ** Important Note **
# Make sure you have build the UICatalog applcation in your local repository
app = os.path.join(os.path.dirname(__file__),
'../../apps/UICatalog/build/release-iphonesimulator',
'UICatalog.app')
app = os.path.abspath(app)
app = os.path.abspath('../../apps/UICatalog/build/release-iphonesimulator/UICatalog.app')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this means that the path will be different based on the working directory. the existing strategy is to make it absolute, based on the location of this file. I think we probably still need it the way it is. You could join the last two lines, though.

self.driver = webdriver.Remote(
command_executor='http://127.0.0.1:4723/wd/hub',
desired_capabilities={
Expand Down