I have a program that I run with thread, like this:
thread.start_new(call_chat_serv, (usr_name, ))
and this is call chat serv:
def call_chat_serv(_name):
global getting_from_user
os.system("python.exe Chat.py "+ str(_name))
while (not getting_from_user):
pass
now, when I set getting from user to true, the program "Chat.py" still runs. How can I terminate this program? and by terminate I mean close Chat.py