bontchev / pcodedmp

A VBA p-code disassembler
GNU General Public License v3.0
450 stars 85 forks source link

new output_file option to avoid changing sys.stdout #8

Closed decalage2 closed 5 years ago

decalage2 commented 5 years ago

This pull request is meant to make it easier for other python applications to import and call pcodedmp functions directly (instead of running it as a separate process). I needed it to integrate pcodedmp with olevba. The issue is that several functions use print() a lot for display within the parsing code, so it is not possible to call pcodedmp as a library without capturing the output of all the print() calls.

Changes:

bontchev commented 5 years ago

Pull request merged.

decalage2 commented 5 years ago

Thanks!