def _getCommandListOfPath(self, path, offset=Point()):

        # store the Gerber commands in this list
        commands = {}

        polarity_sequence = ''
        order = ''

        # Create a list of lineat points from the input path
        coords = self._pathToPoints(path)

        coord_list = []

        # Each 'segment' correspond to a shape within the complete
        # poth.
        for segment in coords:

            segment_coord_list = []

            text = self._getGerberisedPoint(segment[0],offset)
            segment_coord_list.append("G01%sD02*\n" % text)

            for coord in segment[1:]:
                text = self._getGerberisedPoint(coord,offset)
                segment_coord_list.append("G01%sD01*\n" % text)

            coord_list.append(segment_coord_list)

        return coord_list
Returns:
dataset/ETHPy150Open boldport/pcbmode/pcbmode/utils/gerber.py/Gerber._getCommandListOfPath--crossover with--dataset/ETHPy150Open meraki-analytics/cassiopeia/cassiopeia/type/core/stats.py/AggregatedStats.penta_kills