From 9634750185a01a66e0bfafa57b4831640aba80ef Mon Sep 17 00:00:00 2001 From: SpookyDervish Date: Tue, 20 Jan 2026 07:58:30 +1100 Subject: [PATCH] list command fix --- src/list.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/list.py b/src/list.py index ff2a90c..9dac0ee 100644 --- a/src/list.py +++ b/src/list.py @@ -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()