DocumentationTools/IndexGenerator.py

changeset 2401
4f428de32b69
parent 2302
f29e9405c851
child 2525
8b507a9a2d40
child 2989
7efa8b8b6903
--- a/DocumentationTools/IndexGenerator.py	Sun Feb 10 14:48:24 2013 +0100
+++ b/DocumentationTools/IndexGenerator.py	Sun Feb 10 15:17:59 2013 +0100
@@ -10,9 +10,6 @@
 import sys
 import os
 
-from . import TemplatesListsStyle
-from . import TemplatesListsStyleCSS
-
 from Utilities import joinext
 
 
@@ -42,6 +39,7 @@
         self.stylesheet = stylesheet
         
         if self.stylesheet:
+            from . import TemplatesListsStyleCSS
             self.headerTemplate = TemplatesListsStyleCSS.headerTemplate
             self.footerTemplate = TemplatesListsStyleCSS.footerTemplate
             self.indexBodyTemplate = TemplatesListsStyleCSS.indexBodyTemplate
@@ -51,6 +49,7 @@
                 TemplatesListsStyleCSS.indexListModulesTemplate
             self.indexListEntryTemplate = TemplatesListsStyleCSS.indexListEntryTemplate
         else:
+            from . import TemplatesListsStyle
             self.headerTemplate = TemplatesListsStyle.headerTemplate.format(**colors)
             self.footerTemplate = TemplatesListsStyle.footerTemplate.format(**colors)
             self.indexBodyTemplate = \

eric ide

mercurial