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:
Amir h Aghajani 2024-12-03 17:33:29 +03:30 committed by GitHub
parent 3fb123dde2
commit eb33b38ca3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)