RefactoringRope/RefactoringClient.py

branch
server_client_variant
changeset 190
a1b9b4975806
parent 188
05fb0977ce1b
child 203
c38750e1bafd
equal deleted inserted replaced
189:2711fdd91925 190:a1b9b4975806
1523 if len(sys.argv) != 4: 1523 if len(sys.argv) != 4:
1524 print('Host, port and project path parameters are missing. Abort.') 1524 print('Host, port and project path parameters are missing. Abort.')
1525 sys.exit(1) 1525 sys.exit(1)
1526 1526
1527 host, port, projectPath = sys.argv[1:] 1527 host, port, projectPath = sys.argv[1:]
1528
1529 # Create a Qt4/5 application object in order to allow the processing of
1530 # modules containing Qt stuff.
1531 try:
1532 from PyQt5.QtCore import QCoreApplication
1533 except ImportError:
1534 try:
1535 from PyQt4.QtCore import QCoreApplication
1536 except ImportError:
1537 QCoreApplication = None
1538 if QCoreApplication is not None:
1539 app = QCoreApplication(sys.argv)
1540
1528 client = RefactoringClient(host, int(port), projectPath) 1541 client = RefactoringClient(host, int(port), projectPath)
1529 # Start the main loop 1542 # Start the main loop
1530 client.run() 1543 client.run()
1531 1544
1532 sys.exit(0) 1545 sys.exit(0)

eric ide

mercurial