开发者

Python source code recovery from exe

开发者 https://www.devze.com 2023-04-01 06:58 出处:网络
I had a py开发者_JAVA百科thon program written which I converted to an exe binary using py2exe. I have all of the files generated in the dist folder but due to a system crash, I lost the source code.

I had a py开发者_JAVA百科thon program written which I converted to an exe binary using py2exe. I have all of the files generated in the dist folder but due to a system crash, I lost the source code.

Is there a way to get the .py source code file back from .exe or other supporting files generated by py2exe?


According to the following links, you can extract your .pyc files from library.zip and then use decompyle to obtain .py files similar to what you started with.

http://bytes.com/topic/python/answers/101743-py2exe-there-way-go-backwards-exe2py

http://sourceforge.net/projects/decompyle/

Hope it works, and I hope you use github or bitbucket next time.

0

精彩评论

暂无评论...
验证码 换一张
取 消