Skip to content

Commit

Permalink
checks for venv
Browse files Browse the repository at this point in the history
  • Loading branch information
KorryKatti committed Mar 20, 2024
1 parent 3be7a62 commit 29800f4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 29800f4

Please sign in to comment.