I've used os to open a folder location. I then want to wait a few seconds before closing that same window.
I've tried using os.close(), but I get an error.
import os
import pause
path = "C:/Users"
path=os.path.realpath(path)
os.startfile(path)
pause.seconds(5)
os.close(path)
I expect the newly opened folder window to be closed after pausing for 5 seconds.