Embedding exe file

Bayazee bayazee at gmail.com
Sun Jul 16 12:56:52 EDT 2006


hi
how i can Embed an exe file in python program ?
i want read an exe file then convert it to base64 and store in a string
format and Embedd in python code such this :

Exe='''R0lGODdhFQAVAPMAAAQ2PESapISCBASCBMTCxPxmNCQiJJya/ISChGRmzPz+/PxmzDQyZ
DQyZDQyZDQyZCwAAAAAFQAVAAAElJDISau9Vh2WMD0gqHHelJwnsXVloqDd2hrMm8pYYiSHYfMMRm
53ULlQHGFFx1MZCciUiVOsPmEkKNVp3UBhJ4Ohy1UxerSgJGZMMBbcBACQlVhRiHvaUsXHgywTdyc
...'''

then i want execute it without converting and saving it in a separate
exe file . in the other hand i want Embedding exe file ...
how i can do it ??
ThanX for Answers ...!!

--------------------------------
First Iranian Python Community --> www.python.ir




More information about the Python-list mailing list