From 19589fb0d0ab312c80c8ce3240f89dd15652c270 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Sun, 2 Mar 2025 14:30:01 +0800 Subject: [PATCH] update --- setup.py | 2 +- show_avatar.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index bded87d..fd8fbe0 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from cx_Freeze import setup, Executable # 添加你的脚本名称和其他配置 -executables = [Executable("main.py"),Executable("show_avatar.py")] +executables = [Executable("main.py"),Executable("show_avatar.py",base="Win32GUI")] setup( name="HeadBallGame", diff --git a/show_avatar.py b/show_avatar.py index 3980721..c75b21a 100644 --- a/show_avatar.py +++ b/show_avatar.py @@ -72,5 +72,7 @@ def create_image_viewer(folder_path): root.mainloop() # 使用示例: +if not os.path.exists("faces"): + os.makedirs("faces") folder_path = "faces" # 图像文件夹路径 create_image_viewer(folder_path) \ No newline at end of file