Lean
Lean copied to clipboard
Support python virtual environment in Report
Expected Behavior
Read python venv from configuration file and support virtual environment in Report project
Actual Behavior
- Add "python-venv" in Report's configuration
- Activate python virtuan environment in Report generating.
Potential Solution
add Python.PythonInitializer.ActivatePythonVirtualEnvironment(Config.Get("python-venv")); in construct function of Report or the Main function of Report.
Checklist
- [x] I have completely filled out this template
- [x] I have confirmed that this issue exists on the current
masterbranch - [x] I have confirmed that this is not a duplicate issue by searching issues
Thanks for the report, we will look into it 👍.
Python initialization is deep into the base ChartReportElement, I think as part of solving this issue it should be moved to a more central location, maybe in the Report constructor where all the rest is initialized