What to import to use LTR/RTL constants in plugins?

Hello, I cannot figure out what to import in order to use the constants LTR and RTL in a plugin. In scripts, I don’t need to import anything, but in plugins, if I reference the LTR constant, I get a NameError.

Using from GlyphsApp import * works, but that’s a bit overkill. Experimenting (because I have no idea what I’m doing) and writing from GlyphsApp import CONSTANTS doesn’t work either.

This is how we recommend it now:

Thank you! Otherwise just using the associated integers works too, or is there something I’m missing?

Yes. Works too.

The integer values might change on some point. So better use the constants. Both versions should work in 3.1.