old_contents: # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
  # vi: set ft=python sts=4 ts=4 sw=4 et:
  
  import os
  import froi
  
  
  def get_icon_dir():
      pjoin = os.path.join
      apath = os.path.abspath
      froi_dir = os.path.dirname(froi.__file__)
      base_dir = apath(pjoin(froi_dir, os.pardir))
      base_dir = apath(pjoin(base_dir, os.pardir))
      if not os.path.exists(pjoin(base_dir, 'data')):
          _icon_dir = os.path.join(froi_dir,'gui','icon')
      else:
          _icon_dir = os.path.join(froi_dir,'icon')
      return _icon_dir
new_contents: # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
  # vi: set ft=python sts=4 ts=4 sw=4 et:
  
  import os
  import froi
  
  
  def get_icon_dir():
      pjoin = os.path.join
      apath = os.path.abspath
      froi_dir = os.path.dirname(froi.__file__)
      base_dir = apath(pjoin(froi_dir, os.pardir))
      base_dir = apath(pjoin(base_dir, os.pardir))
      if not os.path.exists(pjoin(base_dir, 'data')):
          _icon_dir = pjoin(froi_dir,'gui','icon')
      else:
          _icon_dir = pjoin(base_dir,'icon')
      return _icon_dir
subject: change a wrong else in utils.py