[ https://issues.apache.org/jira/browse/MINIFICPP-1224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gábor Gyimesi resolved MINIFICPP-1224. -------------------------------------- Fix Version/s: 0.12.0 Resolution: Fixed > 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 > Fix For: 0.12.0 > > Attachments: Screenshot 2020-05-13 at 16.49.35.png > > Time Spent: 1h 50m > Remaining Estimate: 0h > > *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)