问题
How do I extract all the dependencies from a Windows file in Python? So I basically want to extract all the used exe,dll,osx,sys etc. files.
I would like to to this in Python or directly with grep.
回答1:
Pefile can help you parse PE executables. You can find some usage examples on the project's page.
来源:https://stackoverflow.com/questions/3056267/how-to-extract-all-dependencies-from-a-windows-file-in-python-or-grep