Getting element ancestors in Python4Capella

Hi all,
I would like to write some scripts for exporting/importing SystemFunction hierarchies.
How could I implement the python counterpart of AQL method “ancestors()” to get the parent of current SystemFunction?

You can use:


This method is declared on the EObject Python class.

Thank you Yvan

Pier Giorgio