I am developing a QGIS plugin which is calling an exe with the help of subprocess.check_output.
The plugin was working fine in Linux but now when I am trying to make it compatible to windows, the subprocess.check_output is not working. I have done some appropriate changes for the windows.
I am trying:
command = 'laszip.exe -i' + ' "' + nameofinputdir + "\\" + fname + '" -odir "' + nameofoutputdir + '" -olaz'
output1 = subprocess.check_output(command, shell=True).
and I am getting this error:
CalledProcessError: Command 'laszip.exe -i "E:\QGIS\IPfiles\IowaDNR-stippled-overlap2.las" -odir "E:\QGIS\opp" -olaz' returned non-zero exit status 1
This command is working fine when I am running it on the Command Prompt but not through this python script.