diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-03-06 14:51:08 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-03-06 14:51:08 (GMT) |
commit | 5aeab071e373d17102925a8a87c10c2e1fec61ef (patch) | |
tree | 0230497674a655c16726c4847510adce5c262a5b /epubadapter.py | |
parent | c94773d68f7810a54aba28031d7f6aabff39a668 (diff) |
Import only the needed backend
The activity only open one tipe of file at time, but was importing
all the backends. Now import the needed backend after having the mimetype,
to have better startup times and lower memory use.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'epubadapter.py')
-rw-r--r-- | epubadapter.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epubadapter.py b/epubadapter.py index 4583b94..2b15ed5 100644 --- a/epubadapter.py +++ b/epubadapter.py @@ -2,6 +2,7 @@ from gi.repository import GObject import logging import epubview + import speech from cStringIO import StringIO |