Skip to content

Commit 0e72fff

Browse files
author
arch
committed
try to kill own process
1 parent c355093 commit 0e72fff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

funscript_editor/ui/funscript_generator_window.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import sys
22
import logging
33
import os
4+
import platform
45
import cv2
56

67
from funscript_editor.utils.logging import setup_logging
@@ -105,6 +106,10 @@ def __funscript_generated(self, funscript, msg, success) -> None:
105106

106107
self.__logger.info("Save result to %s", self.output_file)
107108
if not success: self.__show_message(msg, error=True)
109+
if platform.system() == "Windows":
110+
# On windows i have problems to close the process
111+
# Workaround we kill with taskkill
112+
os.system('taskkill /f /im funscript-editor.exe')
108113
os._exit(os.EX_OK)
109114

110115

0 commit comments

Comments
 (0)