I am using pygame and want to communicate with server. So I decided to create a main screen button that will run the server file, so others can join a local hosted game. However when I try to use import server
,exec("server.py")
or os.system("python server.py")
the file stops every time to run the other file.
How can I then run a file without it stopping?
@Artyer wrote the answer in the comments, to solve this you need to do
os.popen("python server.py")