docs: def get_resource_dir():
      """
      Returns a directory which should be writable for any application
      """
      #resource_prefix = '~'
      if WIN32:
          dpath_ = '~/AppData/Roaming'
      elif LINUX:
          dpath_ = '~/.config'
      elif DARWIN:
          dpath_  = '~/Library/Application Support'
      else:
          raise AssertionError('unknown os')
      dpath = normpath(expanduser(dpath_))
      return dpath