Hi have been working on a project and I have been trying to open a python file with python. So far I have learnt that it is not possible but I have learned that you can do it with cmd. I have got code that can open cmd but I can't seem to work out how to get cmd to open a python file, also if that is possible I would also like to close cmd when the python file is opened. This is what I have so far:
import os
os.system('cmd /k "Python"')