public currentPath() as String:
Returns a textual description of the current path.
print(painter.currentPath())