list command fix

This commit is contained in:
2026-01-20 07:58:30 +11:00
parent b60369bf4a
commit 9634750185

View File

@@ -10,7 +10,10 @@ def list_cmd(args):
check_ground_libs_path()
ground_libs_folder = os.getenv("GROUND_LIBS")
folders = os.listdir(ground_libs_folder)
folders = []
if os.path.isdir(ground_libs_folder): # used to prevent errors that are caused by the GROUND_LIBS folder not existing
folders = os.listdir(ground_libs_folder)
table = Table("Name", "Version", "Description", title="Installed")
config_parser = configparser.ConfigParser()