feat: pass logdir to python plugin
This commit is contained in:
parent
d8c7eb0cdd
commit
916a4b2d81
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue