def reload_theme(value, prev):
 if (value != prev):
  config = (((os.path.dirname(__file__) + '/colorset/') + value) + '.json')
  data = load_config(config)
  if data:
   for d in data:
    c[d] = data[d]
  start_cycle()
  set_config('THEME', value)
  return value
 return prev

def reload_theme ( value , prev ) : if ( value != prev ) : config = ( ( ( os . path . dirname ( __file__ ) + '/colorset/' ) + value ) + '.json' ) data = load_config ( config ) if data : for d in data : c [ d ] = data [ d ] start_cycle ( ) set_config ( 'THEME' , value ) return value return prev
check current theme and update if necessary .