常规更新

This commit is contained in:
2026-04-20 09:43:21 +08:00
parent 729b283f29
commit dd47ab5f44
40 changed files with 1306 additions and 9935 deletions

View File

@ -32,6 +32,15 @@ Or package with PyInstaller:
"""
import os
# Set matplotlib backend to Agg to avoid GUI dependencies
os.environ['MPLBACKEND'] = 'Agg'
# Also set it via matplotlib if it's already imported
try:
import matplotlib
matplotlib.use('Agg')
except ImportError:
pass
import sys
from pathlib import Path