mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Finding calibre-parallel: If sys.executables_location is wrong (as might happen in distro packages) fallback to using PATH
This commit is contained in:
parent
7faf8b09a0
commit
c98ed0db76
@ -54,9 +54,14 @@ class Worker(object):
|
|||||||
'console.app', 'Contents')
|
'console.app', 'Contents')
|
||||||
return os.path.join(contents, 'MacOS', self.osx_interpreter)
|
return os.path.join(contents, 'MacOS', self.osx_interpreter)
|
||||||
|
|
||||||
return os.path.join(getattr(sys, 'frozen_path'), 'calibre-parallel') \
|
if isfrozen:
|
||||||
if isfrozen else \
|
return os.path.join(getattr(sys, 'frozen_path'), 'calibre-parallel')
|
||||||
os.path.join(sys.executables_location, 'calibre-parallel')
|
|
||||||
|
c = os.path.join(sys.executables_location, 'calibre-parallel')
|
||||||
|
if os.access(c, os.X_OK):
|
||||||
|
return c
|
||||||
|
return 'calibre-parallel'
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def gui_executable(self):
|
def gui_executable(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user