Get current script path

How can I get current path of script or at least Glyphs scripts directory through python in Glyphs macro?

Have you tried __file__?

Yes. It has not worked.
I can get it with vanilla.__file__, but I cannot be sure, that another user has this module.

Are you in a plugin or a script?