def chu():
nodeGrp = hou.selectedNodes()
path_info = []
file = open('path.txt', 'w')
for eachnode in nodeGrp:
currentpath = eachnode.path()
path_info.append(currentpath)
nodepaths = path_info
for eachpath in nodepaths:
file.write(eachpath)
file.write('\n')
file.close()