def get_stylesheet_reference(settings, relative_to=None):
 if settings.stylesheet_path:
  assert (not settings.stylesheet), 'stylesheet and stylesheet_path are mutually exclusive.'
  if (relative_to == None):
   relative_to = settings._destination
  return relative_path(relative_to, settings.stylesheet_path)
 else:
  return settings.stylesheet

def get_stylesheet_reference ( settings , relative_to = None ) : if settings . stylesheet_path : assert ( not settings . stylesheet ) , 'stylesheet and stylesheet_path are mutually exclusive.' if ( relative_to == None ) : relative_to = settings . _destination return relative_path ( relative_to , settings . stylesheet_path ) else : return settings . stylesheet
retrieve a stylesheet reference from the settings object .