Files
create/src/App
forbes e10841a6c8
Some checks failed
Build and Test / build (pull_request) Has been cancelled
fix: pass __file__ to exec() in addon Init.py/InitGui.py loading
DirMod.run_init() and DirModGui.run_init_gui() use exec(code) to run
addon Init.py and InitGui.py files, but don't pass __file__ in the
globals dict. Addons that reference __file__ (e.g. Silo) crash with
NameError: name '__file__' is not defined.

Pass {"__file__": str(init_py)} as the globals argument so __file__
is available in the executed code, matching the behavior of normal
Python module loading.
2026-02-14 21:27:25 -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