在 main.py 中修正用户目录切换路径,确保兼容性;清理多余空行
This commit is contained in:
2
main.py
2
main.py
@@ -81,7 +81,7 @@ def pseudo_zsh():
|
|||||||
print(f"存储: {used_disk}GB / {total_disk}GB ({disk_usage}%)")
|
print(f"存储: {used_disk}GB / {total_disk}GB ({disk_usage}%)")
|
||||||
print("-" * 40)
|
print("-" * 40)
|
||||||
|
|
||||||
subprocess.run(f"cd /{username}/", shell=True) # 切换到用户目录
|
subprocess.run(f"cd /Users/{username}/", shell=True) # 切换到用户目录
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user