Macro window did not apply changes in script

I What I recently encountered is that if I run script in macro window and then change the script code in the macro window, it won’t apply unless Glyphs is restarted.

What do you mean by “apply”?

I mean changes in script did not working until glyphs restart. Macro window runs previous script and ignore changes.

Cannot reproduce. Which exact system and app versions are you using?

And what version of Python?

Mac OS Big Sur , glyph 3316, Python 3.11.9

Do I need reinstall python?

Not sure. Is this the python from the plugin manager?

I think, yes
how can I sure?

Check Preferences > Addons > Python Version.

Maybe remove and re-install the python module from Plugin Manager.