#!/usr/bin/env python3
import subprocess
import sys
import os

def main():
    print("VOSHA Uninstaller Alias")
    print("------------------------")
    
    gui_script = os.path.join(os.path.dirname(__file__), "uninstaller_gui.py")
    
    try:
        if os.path.exists(gui_script):
            print("Mencoba membuka GUI Uninstaller...")
            subprocess.run([sys.executable, gui_script])
            return
    except Exception:
        pass
    
    print("GUI Uninstaller tidak ditemukan atau gagal dibuka.")
    print("Silakan gunakan perintah: pip uninstall vosha")

if __name__ == "__main__":
    main()
