mirror of https://github.com/chriskiehl/Gooey.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
227 B
11 lines
227 B
import sys
|
|
import os
|
|
import signal
|
|
|
|
|
|
if sys.platform.startswith("win"):
|
|
def taskkill(pid):
|
|
os.system('taskkill /F /PID {:d} /T >NUL 2>NUL'.format(pid))
|
|
else: # POSIX
|
|
def taskkill(pid):
|
|
os.kill(pid, signal.SIGTERM)
|