i am not able to run an external script from blender python console using os.system or subprocess.run
While if i use another python file to run this script it works but not working from blender python console The blender script does not give any error but the external script is not running
import bpy
import os
import subprocess
bpy.context.scene.frame_current = 80
subprocess.run('python ScreenShotLearning111.py',shell=True)
#os.system('python ScreenShotLearning111.py')
check=Truetosubprocess.runand see if it throws an exception. Also usebpy.context.scene.frame_set(80)to set the frame; see this for why. – scurest Apr 04 '21 at 19:05