From e803e4dd4c1f1d929caad7eb0279e5849458e0e5 Mon Sep 17 00:00:00 2001 From: ictye <95436661+northgreen@users.noreply.github.com> Date: Fri, 2 Feb 2024 17:22:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=95=93=E5=8B=95=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=20(#20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 完善啓動脚本 --- .github/resource/run.bat | 14 ++++++++++++++ ictye-live-dm/depends/logger.py | 2 -- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/resource/run.bat b/.github/resource/run.bat index ba20df6..72e1bc2 100644 --- a/.github/resource/run.bat +++ b/.github/resource/run.bat @@ -1,3 +1,17 @@ +@echo off +echo installing require "./bin/python.exe" -m pip install -r ./requirements.txt + +for /R ./plugin %%f in (requirements.txt) do ( +if exist %%f ( + echo %%~dpf | findstr /I /V /C:"\\__pycache__\\" 1>nul + if not errorlevel 1 ( + echo Installing packages from: %%f + "./bin/python.exe" -m pip install -r "%%f" + ) + ) +) + +echo starting "./bin/python.exe" ./ pause diff --git a/ictye-live-dm/depends/logger.py b/ictye-live-dm/depends/logger.py index 4ea5c18..da3b3c0 100644 --- a/ictye-live-dm/depends/logger.py +++ b/ictye-live-dm/depends/logger.py @@ -1,7 +1,5 @@ import logging - import time - import os