We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imported modules do not reload when edited, keeping changes from being applied to main script.
imported_module.py
def call_me(): return 'Foo'
main.py
from imported_module import call_me 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
call_me
Bar
def call_me(): return 'Bar'
[IDACode] Executing c:\ida_code_bug\imported_module.py
call_me function should returns Bar.
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
Thanks for letting me know! I'll reference this issue in the README!
No branches or pull requests
Description
Imported modules do not reload when edited, keeping changes from being applied to main script.
How to reproduce
imported_module.py
main.py
main.py
to trigger code executioncall_me
inimported_module.py
to returnBar
main.py
to trigger code executionExpected result
call_me
function should returnsBar
.Related issues
The text was updated successfully, but these errors were encountered: