old_contents: try:
      __version__ = __import__('pkg_resources') \
          .get_distribution(__name__).version
  except Exception, e:
      __version__ = 'unknown'
  
new_contents: import os
  
  try:
      __version__ = __import__('pkg_resources') \
          .get_distribution(__name__).version
  except Exception, e:
      __version__ = 'unknown'
  
  _ROOT = os.path.abspath(os.path.dirname(__file__))
  
  
  def get_data(path):
      filename = isinstance(path, (list, tuple)) and path[0] or path
      return os.path.join(_ROOT, 'data', filename)
  
subject: Add function to get relative path in repository