def get_theme_dir(name):
 theme = get_themes()[name]
 return os.path.dirname(os.path.abspath(theme.load().__file__))

def get_theme_dir ( name ) : theme = get_themes ( ) [ name ] return os . path . dirname ( os . path . abspath ( theme . load ( ) . __file__ ) )
return the directory of an installed theme by name .