I have a program called MicroSIP. When I double click it, it opens and register to a remote server according to a .ini file. everything is fine so far. I have a python script in which I want to close the process of MicroSIP.exe and running it again. I'm able to do so, but for some reason, when it opens again, it's like it doesn't use the .ini file like it does when double-clicked.
Does anyone know why does it happen?
This is my code for closing the process and running it again:
os.system("TASKKILL /F /IM MicroSIP.exe")
os.system('"C:\Users\Tamir\Downloads\MicroSIP-Lite-3.10.5\MicroSIP.exe"')