From e3f63871bb6471e256264d8df541260dac01c9c1 Mon Sep 17 00:00:00 2001 From: HeXiangLong <3234374354@qq.com> Date: Thu, 17 Apr 2025 15:02:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=20main.py=20=E4=B8=AD=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E7=94=A8=E6=88=B7=E7=9B=AE=E5=BD=95=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=EF=BC=8C=E7=A1=AE=E4=BF=9D=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=80=A7=EF=BC=9B=E6=B8=85=E7=90=86=E5=A4=9A=E4=BD=99=E7=A9=BA?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 6df0748..be7e675 100644 --- a/main.py +++ b/main.py @@ -81,7 +81,7 @@ def pseudo_zsh(): print(f"存储: {used_disk}GB / {total_disk}GB ({disk_usage}%)") print("-" * 40) - subprocess.run(f"cd /{username}/", shell=True) # 切换到用户目录 + subprocess.run(f"cd /Users/{username}/", shell=True) # 切换到用户目录 while True: try: @@ -167,7 +167,7 @@ def pseudo_zsh(): if args[0] == 'py': subprocess.run(['python3',args[1]]) continue - + # if args[0] == 'sudo': # flight1 = True