diff --git a/sphinx/theming.py b/sphinx/theming.py index 8f27c010c..6c2d3ad9d 100644 --- a/sphinx/theming.py +++ b/sphinx/theming.py @@ -86,7 +86,7 @@ class Theme(object): if not path.isdir(themedir): continue for theme in os.listdir(themedir): - if theme != 'name': + if theme != name: continue if not path.isfile(path.join(themedir, theme, THEMECONF)): continue