GUI
This commit is contained in:
24
launch_gui.py
Executable file
24
launch_gui.py
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/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()
|
||||
Reference in New Issue
Block a user