From 916a4b2d8122d15d489c82319f765b386605c939 Mon Sep 17 00:00:00 2001 From: slzhou Date: Tue, 7 Mar 2023 09:57:07 +0800 Subject: [PATCH] feat: pass logdir to python plugin --- source/libs/function/src/udfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/function/src/udfd.c b/source/libs/function/src/udfd.c index 9d555b33da..ec8cde58e1 100644 --- a/source/libs/function/src/udfd.c +++ b/source/libs/function/src/udfd.c @@ -372,7 +372,7 @@ void udfdInitializePythonPlugin(SUdfScriptPlugin *plugin) { #else snprintf(pythonPath, lenPythonPath, "%s:%s", tsTempDir, tsUdfdLdLibPath); #endif - SScriptUdfEnvItem items[] = {{"PYTHONPATH", pythonPath}}; + SScriptUdfEnvItem items[] = {{"PYTHONPATH", pythonPath}, {"LOGDIR", tsLogDir}}; plugin->openFunc(items, 1); taosMemoryFree(pythonPath); } -- GitLab