Skip to content

Instantly share code, notes, and snippets.

@zerotypic
Last active March 11, 2022 12:38
Show Gist options
  • Save zerotypic/b1d1dd9cdd5c802230ce1e20e98cf55d to your computer and use it in GitHub Desktop.
Save zerotypic/b1d1dd9cdd5c802230ce1e20e98cf55d to your computer and use it in GitHub Desktop.
Get asyncio working in IDAPython
# 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