Translations:Introduction to Python/178/en

For share code across macros, you can e.g. access the FreeCAD or FreeCADGui module (or any other Python module) and set any attribute to it. This should survive the execution of the macro.