Adam Hunyadi created MINIFICPP-1224:
---------------------------------------
Summary: 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: Adam Hunyadi
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.3.4#803005)