mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
313be1221d
commit
d85c4e9946
@ -170,7 +170,11 @@ class GuiRunner(QObject):
|
||||
sys.excepthook = main.unhandled_exception
|
||||
if len(self.args) > 1:
|
||||
p = os.path.abspath(self.args[1])
|
||||
add_filesystem_book(p)
|
||||
if os.path.isdir(p):
|
||||
prints('Ignoring directory passed as command line argument:',
|
||||
self.args[1])
|
||||
else:
|
||||
add_filesystem_book(p)
|
||||
self.app.file_event_hook = add_filesystem_book
|
||||
self.main = main
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user