You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Gábor Gyimesi (Jira)" <ji...@apache.org> on 2022/01/07 14:51:00 UTC

[jira] [Assigned] (MINIFICPP-1224) Implement runtime module-directory extension for ExecutePythonScript

     [ https://issues.apache.org/jira/browse/MINIFICPP-1224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gábor Gyimesi reassigned MINIFICPP-1224:
----------------------------------------

    Assignee: Gábor Gyimesi  (was: Adam Hunyadi)

> Implement runtime module-directory extension for ExecutePythonScript
> --------------------------------------------------------------------
>
>                 Key: MINIFICPP-1224
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-1224
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Improvement
>    Affects Versions: 0.7.0
>            Reporter: Adam Hunyadi
>            Assignee: Gábor Gyimesi
>            Priority: Minor
>         Attachments: Screenshot 2020-05-13 at 16.49.35.png
>
>
> *Background:*
> Having no runtime extension should be a convenience feature only, one could both use the python code itself.
> It should be possible to access {{{color:#403294}{{sys.path}}{color}}} from the cpp wrapper like this: [https://pybind11.readthedocs.io/en/stable/advanced/embedding.html#importing-modules]
> !Screenshot 2020-05-13 at 16.49.35.png|width=631,height=142!
> Having this code called before the script-engines start causes crash even under gil.
> *Proposal:*
> Extend the python script engine with an interface that handles module imports and call to it before any {{{color:#403294}{{eval}}{color}}} call happens.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)