def ReadVersion(self):
    with open(self._path, 'rb') as file_object:
      for line in file_object.readlines():
        line = line.strip()
        if line.startswith(b'dnl Version: '):
          _, _, version = line.rpartition(b'dnl Version: ')
          # TODO: convert version to integer?
          self.version = version.decode(u'ascii')

          return True

    return False
Reads the version from the m4 script file.
dataset/ETHPy150Open libyal/libyal/scripts/overview-generate.py/M4ScriptFile.ReadVersion