Log inGet started
Package

pyModule.assetType

README.md

pyModule

A Python package for the ZeroBlender Python interpreter (the runtime behind execute_blender_code). A <name>.pyModule/ folder holds __init__.py (the package body) and any further .py files as submodules.

Scripts import it like any Python package: import name, from name import x, from name.sub import y. The interpreter's import system searches, in order: sys.modules, every folder on sys.path (default /zero/source/python, for loose .py files and package folders), then the asset index for <name>.pyModule. So the interpreter is extended by writing Python, not Luau.

Methods on AssetRef<pyModule>:

  • check() → { ok, diagnostics }: parse errors and imports that resolve to nothing. Runs no Python.
  • exports() → a table of the package's top-level names (functions stay callable).
  • run(code) → runs a script with this package importable, returns its output.