import os str = ("Rscript D:\\Cocorobo\\test\\RobustVideoMatting\\test\\Step03.R") p = os.system(str)