From 4d488db5c46ca3eee4044fc1754421841f3e0a60 Mon Sep 17 00:00:00 2001 From: KorryKatti <143781663+KorryKatti@users.noreply.github.com> Date: Wed, 20 Mar 2024 11:37:07 +0530 Subject: [PATCH] cherry cherry lady --- index.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/index.py b/index.py index edc45d0..770e4c7 100644 --- a/index.py +++ b/index.py @@ -2,6 +2,7 @@ import subprocess import os import json +import venv import requests from PIL import Image from io import BytesIO @@ -205,7 +206,11 @@ def libmenu_callback(choice): # Code to handle the "Apps Update" option pass +def cherry(): + # i am running out of names , this function displays the app data finally + print("cherry cherry lady") +# what to do when library app is clicked , makes virtual env if making for the first time def handle_app_click(app_id): # Construct the directory path for the app app_dir = os.path.join("common", app_id) @@ -216,6 +221,14 @@ def handle_app_click(app_id): print("Yes") else: print("No") + # Create a virtual environment named "thunderenv" in the app's folder + try: + venv.create(thunderenv_path, with_pip=True) + print("Virtual environment created successfully.") + except Exception as e: + print(f"Error creating virtual environment: {e}") + + cherry() # CallBack function for commenu