This commit is contained in:
Kovid Goyal 2011-09-23 23:21:37 -06:00
parent 313be1221d
commit d85c4e9946

View File

@ -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