Download src/main.py from algorembrant/mBA-Terminal: direct link, hf CLI and curl.
- Browser
- Download file 613 Bytes
-
https://huggingface.co/algorembrant/mBA-Terminal/resolve/main/src/main.py
- Command line
-
hf download hf://algorembrant/mBA-Terminal/src/main.py
-
curl -L -o main.py https://huggingface.co/algorembrant/mBA-Terminal/resolve/main/src/main.py
613 Bytes
| import sys | |
| import os | |
| # Add project root to sys.path to ensure imports work | |
| # We want the parent of 'src' (project root) in sys.path so 'import src.xxx' works | |
| current_dir = os.path.dirname(os.path.abspath(__file__)) | |
| project_root = os.path.dirname(current_dir) | |
| sys.path.append(project_root) | |
| from PyQt6.QtWidgets import QApplication | |
| from src.ui.main_window import MainWindow | |
| def main(): | |
| app = QApplication(sys.argv) | |
| # Optional: Set a dark theme/palette here | |
| window = MainWindow() | |
| window.show() | |
| sys.exit(app.exec()) | |
| if __name__ == "__main__": | |
| main() | |