forked from goarstne/mp3-matcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
33 lines (25 loc) · 785 Bytes
/
main.py
File metadata and controls
33 lines (25 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python3
"""
Audio Volume Normalizer - Main Application
This is the entry point for the Audio Volume Normalizer application.
It initializes the GUI and connects the various components.
"""
import logging
import sys
from gui import NormalizerGUI
from utils import setup_logging
def main():
"""Initialize and run the Audio Volume Normalizer application."""
# Setup logging
setup_logging()
logging.info("Starting Audio Volume Normalizer application")
try:
# Create and start the GUI
app = NormalizerGUI()
app.run()
except Exception as e:
logging.error(f"Unhandled exception: {e}", exc_info=True)
sys.exit(1)
logging.info("Application closed normally")
if __name__ == "__main__":
main()