My blender is at the path of '/home/abc/Destkop/blender/blender-2.78'
. When command line is at the path '/home/abc/Destkop/blender/blender-2.78'
, executing './blender -b /home/abc/Destkop/blender/car.model'
through command line is working.
I am trying to execute blender in python through subprocess, but the code doesn't work with an error "/usr/bin/python: can't open file ./blender -b /home/abc/Destkop/blender/car.model"
, but the path is all right
here is my code
import os
import sys
import subprocess
if __name__="__main__":
os.chdir("/home/abc/Destkop/blender/blender-2.78")
subprocess.Popen([sys.executable],"./blender -b /home/abc/Destkop/blender/car.model ")