Move gtk-based items out of scope of import for cli

svn: r13599
This commit is contained in:
Doug Blank
2009-11-16 22:39:54 +00:00
parent 06017f562e
commit f272ce3dd1
4 changed files with 12 additions and 7 deletions

View File

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