Skip to content

Add config-based initialization for imports and paths#54

Merged
benoitc merged 1 commit intomainfrom
feature/init-config
Mar 23, 2026
Merged

Add config-based initialization for imports and paths#54
benoitc merged 1 commit intomainfrom
feature/init-config

Conversation

@benoitc
Copy link
Owner

@benoitc benoitc commented Mar 23, 2026

Summary

  • py_import:init/0 now loads imports and paths from application config
  • Config format: {imports, [{Module, Func}]} and {paths, [Path]}
  • Adds test verifying config is loaded and applied to new contexts

py_import:init/0 now loads imports and paths from application config:

    {erlang_python, [
        {imports, [{json, dumps}, {math, sqrt}]},
        {paths, ["/path/to/modules"]}
    ]}

Initialization is done in erlang_python_sup before contexts and pools start.
@benoitc benoitc force-pushed the feature/init-config branch from df422a1 to b54998d Compare March 23, 2026 19:45
@benoitc benoitc merged commit 98728d1 into main Mar 23, 2026
14 checks passed
@benoitc benoitc deleted the feature/init-config branch March 23, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant