Files
create/src/App
forbes 1762bd23d1
Some checks failed
Build and Test / build (pull_request) Has been cancelled
fix: preserve caller globals in exec() for module Init.py/InitGui.py loading
The previous fix (e10841a6c8) passed {"__file__": ...} as the globals
argument to exec(), which replaced the caller's globals dict entirely.
This stripped FreeCAD, FreeCADGui, Workbench, and other names that
modules expect to be available, causing NameError failures across
Material, Tux, Mesh, ReverseEngineering, OpenSCAD, Inspection, Robot,
AddonManager, MeshPart, and others.

Fix by merging __file__ into the caller's globals with
{**globals(), "__file__": str(init_py)} so both __file__ and all
existing names remain available in the executed code.
2026-02-15 04:21:26 -06:00
..
2026-01-12 10:01:45 +01:00
2025-11-11 13:26:18 -05:00
2026-02-09 19:15:50 -06:00