I know that using the code below allows you to open another file
import file
exec(open('file.py').read())
but it doesn't seem to work multiple times, well in tkinter button commands atleast. i expected it to work multiple times but it didn't seem to work, i tried other options like importing Popen from subprocess and using popen to run it, but that didn't work either. is there any way to do this?
update: i've added a second button that runs a program, it runs multiple times but the program doesn't function correctly, i am very confused