Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandhan-KA committed Oct 20, 2024
1 parent 2166695 commit 8c54689
Show file tree
Hide file tree
Showing 11 changed files with 560 additions and 14 deletions.
5 changes: 0 additions & 5 deletions module_installation_log.txt

This file was deleted.

Binary file added pymodins/__pycache__/assist.cpython-38.pyc
Binary file not shown.
30 changes: 28 additions & 2 deletions pymodins/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import webbrowser
from rich.console import Console


user = getpass.getuser()

def is_admin():
Expand Down Expand Up @@ -64,6 +65,22 @@ def banner():
console.print("Creator: Nandhan K", style="bold cyan")
console.print("Github: @github.com/Nandhan-KA", style="bold yellow")

def banner_assist():
console = Console()
ascii_art="""
_______ ____ ____ ____ ____ ___ ______ _____ ____ _____ ______
|_ __ \|_ _||_ _||_ \ / _|.' `.|_ _ `.|_ _||_ \|_ _|.' ____ \
| |__) | \ \ / / | \/ | / .-. \ | | `. \ | | | \ | | | (___ \_|
| ___/ \ \/ / | |\ /| | | | | | | | | | | | | |\ \| | _.____`.
_| |_ _| |_ _| |_\/_| |_\ `-' /_| |_.' /_| |_ _| |_\ |_ | \____) |
|_____| |______| |_____||_____|`.___.'|______.'|_____||_____|\____| \______.'
[email protected]
"""
console.print(ascii_art, style="bold yellow")
console.print("Creator: Nandhan K", style="bold cyan")
console.print("Github: @github.com/Nandhan-KA", style="bold yellow")
console.print("Pymodins Virtual Assistant")

def banner_nointernet():
console = Console()
ascii_art="""
Expand Down Expand Up @@ -109,6 +126,9 @@ def sys_info():
except Exception as e:
console.print("Error:", e, "Reinstall Python with PIP and add PIP to the System PATH",style="bold white")


def assist():
banner_assist()

def upgrade_pip():
try:
Expand Down Expand Up @@ -2092,11 +2112,17 @@ def install_bigdata_modules():
else:
banner_nointernet()


def vassist():
va = assist.VoiceAssistant()
va.run()

def run():
if is_admin():
installer() # Run installer directly if already admin
installer()
else:
if run_as_admin():
pass # The elevated process will continue running the script
pass
else:
raise PermissionError("Failed to acquire administrative privileges.")
vassist()
Loading

0 comments on commit 8c54689

Please sign in to comment.