From c17f9aa8cd1183cae9b5950f8ce1f37ba2ef9c5b Mon Sep 17 00:00:00 2001 From: Neko Asakura Date: Fri, 20 Dec 2024 04:18:37 +1000 Subject: [PATCH] ext/pyrender/viewer: resolve macOS crashes when initialising Tk() --- genesis/ext/pyrender/viewer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/genesis/ext/pyrender/viewer.py b/genesis/ext/pyrender/viewer.py index 4a08d36b..466fe2ee 100644 --- a/genesis/ext/pyrender/viewer.py +++ b/genesis/ext/pyrender/viewer.py @@ -16,6 +16,8 @@ from tkinter import Tk from tkinter import filedialog +root = Tk() +root.withdraw() import pyglet from moviepy.video.io.ffmpeg_writer import FFMPEG_VideoWriter @@ -961,7 +963,6 @@ def _get_save_filename(self, file_exts): } filetypes = [file_types[x] for x in file_exts] try: - root = Tk() save_dir = self.viewer_flags["save_directory"] if save_dir is None: save_dir = os.getcwd()