From fa44749240fac4008aca8f7f655b3770a5b70b9d Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sun, 26 May 2024 18:15:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=9B=B8=E5=AF=B9?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E5=AF=BC=E8=87=B4=E7=9A=84windows=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E5=99=A8=E6=97=A0=E6=B3=95=E5=AE=89=E8=A3=85=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index f33af37b6..7355f2cb5 100644 --- a/main.py +++ b/main.py @@ -8,10 +8,8 @@ from logging import Formatter, Logger from util.cmd_config import CmdConfig, try_migrate_config warnings.filterwarnings("ignore") -abs_path = os.path.dirname(os.path.realpath(sys.argv[0])) + '/' logger: Logger = None - logo_tmpl = """ ___ _______.___________..______ .______ ______ .___________. / \ / | || _ \ | _ \ / __ \ | | @@ -35,9 +33,11 @@ def update_dept(): ''' # 获取 Python 可执行文件路径 py = sys.executable + requirements_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "requirements.txt") + print(requirements_path) # 更新依赖库 mirror = "https://mirrors.aliyun.com/pypi/simple/" - os.system(f"{py} -m pip install -r requirements.txt -i {mirror}") + os.system(f"{py} -m pip install -r {requirements_path} -i {mirror}") def main(): try: