#!/usr/bin/env python3
"""
Launcher script for StreamLens GUI
"""

import sys
import os

# Add the current directory to Python path
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))

from analyzer.main import main

if __name__ == "__main__":
    # Set up arguments for GUI mode
    sys.argv = ['streamlens']
    
    # Add PCAP file if provided as argument
    if len(sys.argv) > 1:
        sys.argv.extend(['--gui', '--pcap', sys.argv[1]])
    else:
        sys.argv.append('--gui')
    
    main()