Importing Glyphs within a helper script


I’ve been messily repeating code all over the place and decided to put a bunch of functions in a file which I import.

Despite doing an import Glyphs and GlyphsApp in that shared file I’m getting NameErrors such as “NameError: global name ‘GSPath’ is not defined”.

Could you please advise a best methodology?

For anyone reading “from GlyphsApp import *” works just fine in the file, you just need to Reload Scripts for a change in that helper file to take effect.

1 Like