attribute contains a valid file path, and return this file path.
"""
ed = getStudyEditor()
+ if len(salome.sg.getSelected()) == 0 : return None
sobj = ed.study.FindObjectID(salome.sg.getSelected(0))
filepath = sobj.GetComment()
if not os.path.isfile(filepath):