28 lines
633 B
Python
28 lines
633 B
Python
# main.py
|
|
import sys
|
|
import os
|
|
import logging
|
|
from PySide6.QtWidgets import QApplication
|
|
from gui import MainWindow
|
|
|
|
def setup_logging():
|
|
log_file = os.path.join(os.getcwd(), "hyperv_deployer.log")
|
|
logging.basicConfig(
|
|
level=logging.INFO,
|
|
format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",
|
|
handlers=[
|
|
logging.FileHandler(log_file, encoding="utf-8"),
|
|
logging.StreamHandler(sys.stdout)
|
|
]
|
|
)
|
|
|
|
def main():
|
|
setup_logging()
|
|
app = QApplication(sys.argv)
|
|
win = MainWindow()
|
|
win.show()
|
|
sys.exit(app.exec())
|
|
|
|
if __name__ == "__main__":
|
|
main()
|