1509 |
1509 |
1510 # Create a Qt6 application object in order to allow the processing of |
1510 # Create a Qt6 application object in order to allow the processing of |
1511 # modules containing Qt stuff. |
1511 # modules containing Qt stuff. |
1512 try: |
1512 try: |
1513 from PyQt6.QtCore import QCoreApplication |
1513 from PyQt6.QtCore import QCoreApplication |
1514 except ImportError: |
1514 except (ImportError, RuntimeError): |
1515 QCoreApplication = None |
1515 QCoreApplication = None |
1516 if QCoreApplication is not None: |
1516 if QCoreApplication is not None: |
1517 app = QCoreApplication(sys.argv) |
1517 app = QCoreApplication([]) |
1518 |
1518 |
1519 client = RefactoringClient(host, int(port), projectPath) |
1519 client = RefactoringClient(host, int(port), projectPath) |
1520 # Start the main loop |
1520 # Start the main loop |
1521 client.run() |
1521 client.run() |
1522 |
1522 |