def host_theme_path():
 domain = None
 for (host, theme) in settings.HOST_THEMES:
  if (domain is None):
   domain = Site.objects.get(id=current_site_id()).domain
  if (host.lower() == domain.lower()):
   try:
    __import__(theme)
    module = sys.modules[theme]
   except ImportError:
    pass
   else:
    return os.path.dirname(os.path.abspath(module.__file__))
 return u''

def host_theme_path ( ) : domain = None for ( host , theme ) in settings . HOST_THEMES : if ( domain is None ) : domain = Site . objects . get ( id = current_site_id ( ) ) . domain if ( host . lower ( ) == domain . lower ( ) ) : try : __import__ ( theme ) module = sys . modules [ theme ] except ImportError : pass else : return os . path . dirname ( os . path . abspath ( module . __file__ ) ) return u''
returns the directory of the theme associated with the given host .