The following code operates fine under Windows but fails under Linux:
Sub interpreter_console
ps = CreateUnoService("com.sun.star.util.PathSettings")
install_path = ConvertFromURL(ps.Module)
Shell( install_path + GetPathSeparator() + "python" )
End Sub
Note that the shelled pgm file exists, and that same pgm argument runs fine from the OS terminal.
Same observations with this code:
Sub Main
flags = com.sun.star.system.SystemShellExecuteFlags
ps = CreateUnoService("com.sun.star.util.PathSettings")
install_path = ConvertFromURL(ps.Module)
pgm = install_path + GetPathSeparator() + "python"
sys = CreateUnoService("com.sun.star.system.SystemShellExecute")
sys.Execute( pgm, " ", flags.DEFAULTS)
End Sub