GUI development

This commit is contained in:
BarsTiger
2022-01-26 19:48:46 +02:00
parent f6ddecd6c8
commit c8b409f0de
5 changed files with 28 additions and 21 deletions

View File

@@ -142,11 +142,12 @@ def uninstall(package, is_gui=False):
def apps_list(is_gui=False):
apps = list()
if os.path.exists('{0}apps'.format(horsy_vars.horsypath)):
print(f"[green]Installed apps:[/]")
if not is_gui:
print(f"[green]Installed apps:[/]")
for file in os.listdir('{0}apps'.format(horsy_vars.horsypath)):
if file.endswith(".bat") and not is_gui:
print(f"{file.split('.')[0]}")
else:
elif file.endswith(".bat"):
apps.append(file.split('.')[0])
if is_gui:
return apps