feat: pass logdir to python plugin

This commit is contained in:
slzhou 2023-03-07 09:57:07 +08:00
parent d8c7eb0cdd
commit 916a4b2d81
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ void udfdInitializePythonPlugin(SUdfScriptPlugin *plugin) {
#else #else
snprintf(pythonPath, lenPythonPath, "%s:%s", tsTempDir, tsUdfdLdLibPath); snprintf(pythonPath, lenPythonPath, "%s:%s", tsTempDir, tsUdfdLdLibPath);
#endif #endif
SScriptUdfEnvItem items[] = {{"PYTHONPATH", pythonPath}}; SScriptUdfEnvItem items[] = {{"PYTHONPATH", pythonPath}, {"LOGDIR", tsLogDir}};
plugin->openFunc(items, 1); plugin->openFunc(items, 1);
taosMemoryFree(pythonPath); taosMemoryFree(pythonPath);
} }