Kamikotei
New Coder
Hi,
I'm working on a little extension that run a python script whenever I open a .fits file. I'm mostly planning on using it while I'm connected to a remote machine. To run the command I use the spawn function from child_process. My issue is that the folder structure is different when I run the script through extension compare to when I run the script myself in the terminal. This leads to Import error because the folder where the acutal module are, does not exist in the spawn() folder structure. I don't understand what is happening. Any help would be greatly appriciated.
I'm working on a little extension that run a python script whenever I open a .fits file. I'm mostly planning on using it while I'm connected to a remote machine. To run the command I use the spawn function from child_process. My issue is that the folder structure is different when I run the script through extension compare to when I run the script myself in the terminal. This leads to Import error because the folder where the acutal module are, does not exist in the spawn() folder structure. I don't understand what is happening. Any help would be greatly appriciated.