def icon_dir(theme):
 if ((not theme) or (theme == _default_icon_theme)):
  icons = share(u'icons')
 else:
  theme_dir = share(u'icons', theme)
  if (os.path.isabs(theme) and os.path.isdir(theme)):
   icons = theme
  elif os.path.isdir(theme_dir):
   icons = theme_dir
  else:
   icons = share(u'icons')
 return icons

def icon_dir ( theme ) : if ( ( not theme ) or ( theme == _default_icon_theme ) ) : icons = share ( u'icons' ) else : theme_dir = share ( u'icons' , theme ) if ( os . path . isabs ( theme ) and os . path . isdir ( theme ) ) : icons = theme elif os . path . isdir ( theme_dir ) : icons = theme_dir else : icons = share ( u'icons' ) return icons
return the path to the icons directory this typically returns share/git-cola/icons within the git-cola installation prefix .