Skip to content

Commit

Permalink
Fix Unpack Crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWindScholar committed Sep 30, 2023
1 parent aea656e commit d1c56ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,11 @@ def subbed(project):
mysubs = {}
print(" >\033[31m插件列表 \033[0m\n")
for sub in os.listdir(binner + os.sep + "subs"):
if os.path.isdir(binner + os.sep + "subs" + os.sep + sub):
if os.path.isfile(binner + os.sep + "subs" + os.sep + sub+os.sep+"info.json"):
with open(binner + os.sep + "subs" + os.sep + sub+os.sep+"info.json") as l_info:
name = json.load(l_info)['name']
subn += 1
print(f" [{subn}]- {sub}\n")
print(f" [{subn}]- {name}\n")
mysubs[subn] = sub
print("----------------------------------------------\n")
print("\033[33m> [66]-安装 [77]-删除 [88]-在线Plug仓库 [99]-项目菜单\033[0m")
Expand Down

0 comments on commit d1c56ce

Please sign in to comment.