Commits

Georg Brandl committed d8c7bc7

Use package_dir for themepath.

  • Participants
  • Parent commits 0a6afe6

Comments (0)

Files changed (1)

sphinx/theming.py

 import ConfigParser
 from os import path
 
+from sphinx import package_dir
 from sphinx.errors import ThemeError
 
 
     def init_themes(cls, builder):
         """Search all theme paths for available themes."""
         cls.themepath = list(builder.config.html_theme_path)
-        cls.themepath.append(
-            path.join(path.abspath(path.dirname(__file__)), 'themes'))
+        cls.themepath.append(path.join(package_dir, 'themes'))
 
         for themedir in cls.themepath[::-1]:
             themedir = path.join(builder.confdir, themedir)