Move gtk-based items out of scope of import for cli
svn: r13599
This commit is contained in:
@ -48,7 +48,6 @@ import const
|
||||
from gen.plug.docgen import BaseDoc, TextDoc, FONT_SANS_SERIF
|
||||
from libhtmlbackend import HtmlBackend
|
||||
from libhtml import Html
|
||||
from QuestionDialog import WarningDialog
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
@ -261,6 +260,7 @@ class HtmlDoc(BaseDoc, TextDoc):
|
||||
if from_fname != dest:
|
||||
shutil.copyfile(from_fname, dest)
|
||||
elif self.warn_dir:
|
||||
from QuestionDialog import WarningDialog
|
||||
WarningDialog(
|
||||
_("Possible destination error") + "\n" +
|
||||
_("You appear to have set your target directory "
|
||||
|
Reference in New Issue
Block a user