def _JoinKeyPath(self, path_segments):
<EOL>path_segments = [<EOL>segment.split(definitions.KEY_PATH_SEPARATOR)<EOL>for segment in path_segments]<EOL>path_segments = [<EOL>element for sublist in path_segments for element in sublist]<EOL>path_segments = filter(None, path_segments)<EOL>return definitions.KEY_PATH_SEPARATOR.join(path_segments)<EOL>
Joins the path segments into key path.

        Args:
          path_segments (list[str]): Windows Registry key path segments.

        Returns:
          str: key path.