mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:
This commit is contained in:
parent
281e70d459
commit
f8b0c6761a
@ -204,12 +204,12 @@ class ProgressBar:
|
|||||||
|
|
||||||
|
|
||||||
LAUNCHER='''\
|
LAUNCHER='''\
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
frozen_path=%s
|
frozen_path=%s
|
||||||
export ORIGWD=`pwd`
|
export ORIGWD=`pwd`
|
||||||
export LD_LIBRARY_PATH=$frozen_path:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=$frozen_path:$LD_LIBRARY_PATH
|
||||||
cd $frozen_path
|
cd $frozen_path
|
||||||
./%s $*
|
./%s "$@"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def extract_tarball(tar, destdir):
|
def extract_tarball(tar, destdir):
|
||||||
|
@ -11,7 +11,7 @@ from calibre.ebooks.lrf.any.convert_from import main as any2lrf
|
|||||||
from calibre.ebooks.lrf.web.convert_from import main as web2lrf
|
from calibre.ebooks.lrf.web.convert_from import main as web2lrf
|
||||||
from calibre.ebooks.lrf.feeds.convert_from import main as feeds2lrf
|
from calibre.ebooks.lrf.feeds.convert_from import main as feeds2lrf
|
||||||
from calibre.gui2.lrf_renderer.main import main as lrfviewer
|
from calibre.gui2.lrf_renderer.main import main as lrfviewer
|
||||||
from calibre import iswindows, __appname__
|
from calibre import iswindows, __appname__, islinux
|
||||||
try:
|
try:
|
||||||
from calibre.utils.single_qt_application import SingleApplication
|
from calibre.utils.single_qt_application import SingleApplication
|
||||||
except:
|
except:
|
||||||
@ -43,6 +43,10 @@ if iswindows:
|
|||||||
python = os.path.join(os.path.dirname(python), 'Scripts\\parallel.exe')
|
python = os.path.join(os.path.dirname(python), 'Scripts\\parallel.exe')
|
||||||
popen = partial(subprocess.Popen, creationflags=0x08) # CREATE_NO_WINDOW=0x08 so that no ugly console is popped up
|
popen = partial(subprocess.Popen, creationflags=0x08) # CREATE_NO_WINDOW=0x08 so that no ugly console is popped up
|
||||||
|
|
||||||
|
if islinux and hasattr(sys, 'frozen_path'):
|
||||||
|
python = os.path.join(getattr(sys, 'frozen_path'), 'parallel')
|
||||||
|
popen = partial(subprocess.Popen, cwd=getattr(sys, 'frozen_path'))
|
||||||
|
|
||||||
def cleanup(tdir):
|
def cleanup(tdir):
|
||||||
try:
|
try:
|
||||||
import shutil
|
import shutil
|
||||||
|
@ -125,7 +125,8 @@ open(hook, 'wb').write('hiddenimports = %%s'%%repr(temp) + '\\n')
|
|||||||
sys.path.insert(0, CALIBRESRC)
|
sys.path.insert(0, CALIBRESRC)
|
||||||
from calibre.linux import entry_points
|
from calibre.linux import entry_points
|
||||||
|
|
||||||
executables, scripts = ['calibre_postinstall'], [os.path.join(CALIBRESRC, 'calibre', 'linux.py')]
|
executables, scripts = ['calibre_postinstall', 'parallel'],
|
||||||
|
[os.path.join(CALIBRESRC, 'calibre', 'linux.py'), os.path.join(CALIBRESRC, 'calibre', 'parallel.py')]
|
||||||
|
|
||||||
for entry in entry_points['console_scripts'] + entry_points['gui_scripts']:
|
for entry in entry_points['console_scripts'] + entry_points['gui_scripts']:
|
||||||
fields = entry.split('=')
|
fields = entry.split('=')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user