I'm writing a code in which inside of it I need to run another python file which I have the path for it , and to save its output ( the exception it returns or the output it self ). Can someone guide me ? I tried subprocess but it doesn't run :
import subprocess
output = call ('python' , filePath)
thanks in advance