https://bugs.freedesktop.org/show_bug.cgi?id=64597
Stephan Bergmann <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Whiteboard|Need_Advice | CC| |[email protected] Ever confirmed|0 |1 --- Comment #1 from Stephan Bergmann <[email protected]> --- Whenever PyUNO is instantiated in-process, prependPythonPath (pyuno/source/loader/pyuno_loader.cxx) adds the content of the PYUNO_LOADER_PYTHONPATH bootstrap variable from the pythonloader.uno ini file (program/pythonloader.unorc on Linux) to the PYTHONPATH environment variable. (PYUNO_LOADER_PYTHONHOME is handled similarly, but it calls Py_SetPythonHome instead of setting the PYTHONHOME environment variable. There appears to be no similar Python function to modify the pythonpath, though.) What would be necessary is coordination between pyuno_loader.cxx and all the places that spawn external processes (hopefully all using the com.sun.star.system.SystemShellExecute UNO service implemented in shell/source/{unix,win32}), to make sure the PYTHONPATH environment variable is back in its original state for any spawned processes. (A simple way to see this problem on Linux is to have a shell script containing just set and calling it from Basic with the System function, seeing the output in the shell from which soffice was started.) -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
