Is it possible in Python to close a script using just the filename of the script? I have two scripts which don't work at the same time so on startup I want one of the scripts to end the other script. Is this possible? If so, please let me know how.
Any help greatly appreciated. Thanks,
Mitra0000
In this answer, it says that you can. You would need a "PID (Process Identifier)" and know whether you are using Unix or Python. Why? Because there are two different ways:
Unix:
Windows:
The answer also mentioned: