idascript
idascript copied to clipboard
Cannot delete OUTFILE because its being used by another process
In the end of idascript, there is:
os.remove(OUTFILE)
that fails due to how tempfile.mkstemp() acts, it returns fd and the filename. The fd was remained open,
and thus the error (Error 32).
So I added this code before the os.remove:
os.close(fd)
And it solved the issue :)