Closed Xartrick closed 1 year ago
After more digging, this seems to be a known behavior, see Loading your own modules from your IDAPython scripts with idaapi.require() – Hex Rays.
from idaapi import require
require('imported_module')
from imported_module import call_me
print(call_me())
This can be closed or kept open for future reference.
Thanks for letting me know! I'll reference this issue in the README!
Description
Imported modules do not reload when edited, keeping changes from being applied to main script.
How to reproduce
Create
imported_module.py
Create
main.py
print(call_me())
[IDACode] Listening on 127.0.0.1:7065
[IDACode] Client connected [IDACode] Set workspace folder to c:\ida_code_bug
[IDACode] Executing c:\ida_code_bug\main.py Foo
main.py
to trigger code executionExpected result
call_me
function should returnsBar
.Related issues
34