@protected
def shortestPath(self):
    'Return shortest unique path to node\n\n        Example:\n            >>> _ = cmds.file(new=True, force=True)\n            >>> parent = createNode("transform", name="myParent")\n            >>> child = createNode("transform", name="myChild", parent=parent)\n            >>> child.shortestPath()\n            u\'myChild\'\n            >>> child = createNode("transform", name="myChild")\n            >>> # Now `myChild` could refer to more than a single node\n            >>> child.shortestPath()\n            u\'|myChild\'\n\n        '
    return self._fn.partialPathName()
Return shortest unique path to node

Example:
    >>> _ = cmds.file(new=True, force=True)
    >>> parent = createNode("transform", name="myParent")
    >>> child = createNode("transform", name="myChild", parent=parent)
    >>> child.shortestPath()
    u'myChild'
    >>> child = createNode("transform", name="myChild")
    >>> # Now `myChild` could refer to more than a single node
    >>> child.shortestPath()
    u'|myChild'
@protected
def shortestPath(self):
    'Return shortest unique path to node\n\n        Example:\n            >>> _ = cmds.file(new=True, force=True)\n            >>> parent = createNode("transform", name="myParent")\n            >>> child = createNode("transform", name="myChild", parent=parent)\n            >>> child.shortestPath()\n            u\'myChild\'\n            >>> child = createNode("transform", name="myChild")\n            >>> # Now `myChild` could refer to more than a single node\n            >>> child.shortestPath()\n            u\'|myChild\'\n\n        '
    return self._fn.partialPathName()