code: def get_fw_version():
      
      version = 'unknown'
      try:
          pkg = require(get_fw_name())[0]
      except DistributionNotFound:
          # Icetea is not installed. try to read version string from setup.py
          try:
              setup_path = os.path.abspath(os.path.dirname(__file__)+'/../..')
              with open(os.path.join(setup_path, 'setup.py')) as setup_file:
                  lines = setup_file.readlines()
                  for line in lines:
                      match = re.search(r"VERSION = \"([\S]{5,})\"", line)
                      if match:
                          version = match.group(1)
                          break
          except Exception:  # pylint: disable=broad-except
              pass
      else:
          version = "-rc".join(pkg.version.split("rc"))
      return version
docs: Try to get version of the framework. First try pkg_resources.require, if that fails
      read from setup.py
      :return: Version as str