在 main.py 中修正用户目录切换路径,确保兼容性;清理多余空行
This commit is contained in:
4
main.py
4
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
|
||||
|
||||
Reference in New Issue
Block a user