import re


def GetVersion(path):
  """Get the version of this python tool."""
  version_str = 'XWalk packaging tool version '
  file_handle = open(path, 'r')
  src_content = file_handle.read()
  version_nums = re.findall(r'\d+', src_content)
  version_str += ('.').join(version_nums)
  file_handle.close()
  return version_str