mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
f0db9b8a2b
commit
1e905098be
@ -178,8 +178,9 @@ elif isosx:
|
|||||||
if os.path.isdir(ans):
|
if os.path.isdir(ans):
|
||||||
app = get_bundle_data(ans)
|
app = get_bundle_data(ans)
|
||||||
if app is None:
|
if app is None:
|
||||||
return error_dialog(parent, _('Invalid Application'), _(
|
error_dialog(parent, _('Invalid Application'), _(
|
||||||
'%s is not a valid macOS application bundle.') % ans, show=True)
|
'%s is not a valid macOS application bundle.') % ans, show=True)
|
||||||
|
return
|
||||||
return app
|
return app
|
||||||
if not os.access(ans, os.X_OK):
|
if not os.access(ans, os.X_OK):
|
||||||
error_dialog(parent, _('Cannot execute'), _(
|
error_dialog(parent, _('Cannot execute'), _(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user