def start_app(path_to_app, window_title): p = os.path.normpath(path_to_app) if not os.path.exists(p): die('cannot find "%s": expected -> %s' % (window_title, p)) app = App.open(p) if not app: die('cannot start %s' % window_title)
... then more stuff that waits for the window to appear on the screen ...
return app
def start_app( path_to_ app, window_title): normpath( path_to_ app)
p = os.path.
if not os.path.exists(p):
die('cannot find "%s": expected -> %s' % (window_title, p))
app = App.open(p)
if not app:
die('cannot start %s' % window_title)
... then more stuff that waits for the window to appear on the screen ...
return app