I have a script in Python which gives a few files but I also need a log file. Usually I use this command in windows cmd:
py name.py > name.log
This script is part of a project and I need to run it from python. I tried this:
subprocess.call(["py","name.py",">","name.log"])
And it give me all the files that the script prepares but not the log file.