Last active
March 11, 2022 12:38
-
-
Save zerotypic/b1d1dd9cdd5c802230ce1e20e98cf55d to your computer and use it in GitHub Desktop.
Get asyncio working in IDAPython
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Insert this into your idapythonrc.py file. | |
from PyQt5.QtWidgets import QApplication | |
import qasync | |
import asyncio | |
qapp = QApplication.instance() | |
# Requires qasync from here: https://github.com/zerotypic/qasync/tree/evloop_already_running, if not already merged | |
loop = qasync.QEventLoop(qapp, already_running=True) | |
asyncio.set_event_loop(loop) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment