From 29800f4a8d31f39edd169091a73a8911f3e90add Mon Sep 17 00:00:00 2001 From: KorryKatti <143781663+KorryKatti@users.noreply.github.com> Date: Wed, 20 Mar 2024 11:15:14 +0530 Subject: [PATCH] checks for venv --- index.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/index.py b/index.py index dbe58ad..edc45d0 100644 --- a/index.py +++ b/index.py @@ -207,9 +207,16 @@ def libmenu_callback(choice): def handle_app_click(app_id): - # You can implement the logic to handle the click event for each app button here - print(f"Clicked on app with ID: {app_id}") - # For now, let's just print the clicked app ID + # Construct the directory path for the app + app_dir = os.path.join("common", app_id) + + # Check if the thunderenv directory exists in the app directory + thunderenv_path = os.path.join(app_dir, "thunderenv") + if os.path.exists(thunderenv_path) and os.path.isdir(thunderenv_path): + print("Yes") + else: + print("No") + # CallBack function for commenu def commenu_callback():