수정사항

This commit is contained in:
2025-12-26 22:22:08 +09:00
parent af9a38a973
commit 0c53e1d2f2
4 changed files with 96 additions and 4 deletions

View File

@@ -33,8 +33,11 @@ try:
package_name = "python-socketio"
version = importlib.metadata.version(package_name)
if int(version.replace(".", "")) < 580:
os.system(f"pip install --upgrade {package_name}")
# 개선 (비동기 + 로깅)
if int(version.replace(".", "")) < 580:
import subprocess
subprocess.Popen(["pip", "install", "--upgrade", package_name],
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
except Exception:
pass