Hello,
This a pretty open-ended question, I have created multiple extensions which spawn Python child processes in the backend. These use the following in default-server.ts:
var spawn = cp.spawn;
var process = spawn('python', #more_code_here);
The issue is that different systems might have different default Python versions which contain the libraries the child process requires to complete the process. So how does one approach this problem? Python paths can be directly inputted in place of the ‘python’, but whats to say any user has that folder in that path/the path also contains the version of Python which contains the libraries the child process needs?
Thanks for your help!