solve error Python.Runtime.BadPythonDllException: Runtime.PythonDLL was not set or does not point to a supported Python runtime DLL on Elsa.ServerAndStudio.Web solution (#6151)
This commit is contained in:
parent
3fb123dde2
commit
eb33b38ca3
|
|
@ -112,7 +112,15 @@ services
|
|||
})
|
||||
.UseLiquid()
|
||||
.UseCSharp()
|
||||
.UsePython()
|
||||
.UsePython(python =>
|
||||
{
|
||||
python.PythonOptions += options =>
|
||||
{
|
||||
// Make sure to configure the path to the python DLL. E.g. /opt/homebrew/Cellar/python@3.11/3.11.6_1/Frameworks/Python.framework/Versions/3.11/bin/python3.11
|
||||
// alternatively, you can set the PYTHONNET_PYDLL environment variable.
|
||||
configuration.GetSection("Scripting:Python").Bind(options);
|
||||
};
|
||||
})
|
||||
.UseHttp(http =>
|
||||
{
|
||||
if (useCaching)
|
||||
|
|
|
|||
Loading…
Reference in a new issue