def reload(): 'Reloads the active skin.' t = time.clock() from common import pref global _css_fonts _css_fonts = None set_active(pref('appearance.skin'), pref('appearance.variant'), True) log.info('skin reloaded in %ss', (time.clock() - t))
def skininit(pth, skinname = 'default'): if not hasattr(pth, 'abspath'): pth = path(pth) set_resource_paths([pth.abspath()]) global _css_fonts _css_fonts = None set_active(skinname)