mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
6a638b3a9a
commit
1b5a61baed
@ -12,7 +12,6 @@ from calibre.gui2 import ORG_NAME, APP_UID, initialize_file_icon_provider, \
|
|||||||
Application
|
Application
|
||||||
from calibre.gui2.main_window import option_parser as _option_parser
|
from calibre.gui2.main_window import option_parser as _option_parser
|
||||||
from calibre.utils.config import prefs, dynamic
|
from calibre.utils.config import prefs, dynamic
|
||||||
from calibre.gui2.ui import Main
|
|
||||||
|
|
||||||
def option_parser():
|
def option_parser():
|
||||||
parser = _option_parser('''\
|
parser = _option_parser('''\
|
||||||
@ -32,6 +31,7 @@ path_to_ebook to the database.
|
|||||||
return parser
|
return parser
|
||||||
|
|
||||||
def init_qt(args):
|
def init_qt(args):
|
||||||
|
from calibre.gui2.ui import Main
|
||||||
parser = option_parser()
|
parser = option_parser()
|
||||||
opts, args = parser.parse_args(args)
|
opts, args = parser.parse_args(args)
|
||||||
if opts.with_library is not None and os.path.isdir(opts.with_library):
|
if opts.with_library is not None and os.path.isdir(opts.with_library):
|
||||||
@ -45,6 +45,7 @@ def init_qt(args):
|
|||||||
return app, opts, args, actions
|
return app, opts, args, actions
|
||||||
|
|
||||||
def run_gui(opts, args, actions, listener, app):
|
def run_gui(opts, args, actions, listener, app):
|
||||||
|
from calibre.gui2.ui import Main
|
||||||
initialize_file_icon_provider()
|
initialize_file_icon_provider()
|
||||||
if not dynamic.get('welcome_wizard_was_run', False):
|
if not dynamic.get('welcome_wizard_was_run', False):
|
||||||
from calibre.gui2.wizard import wizard
|
from calibre.gui2.wizard import wizard
|
||||||
|
Loading…
x
Reference in New Issue
Block a user