So I am writing an adventure game, and once you have managed to get out of the first room, I want to open up the next "room" which is a second python file. How do I do this? I have tried:
import os
os.system("start "+"agroom2.pyw")
but this doesn't seem to work. So how do you open a different python file, in python?
importits contents and run its methods.importbecause what you're trying to do is almost certainly not what you want..pyfiles and not.pyw..pywextension is used for GUI programs that don't use a console window.