Re: Embedding exe file

2006-07-17 Thread tac-tics
Bayazee wrote: > hi,ThanX > but i dont want to save the exe file in temp file and run it . i want > to run it directly from python . maybe such this : > exec("file("test.exe","rw").read())") > i want write a cd lock with python tp protect an binary file . and so i > dont want save it in other temp

Re: Embedding exe file

2006-07-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Bayazee <[EMAIL PROTECTED]> wrote: >hi,ThanX >but i dont want to save the exe file in temp file and run it . i want >to run it directly from python . maybe such this : >exec("file("test.exe","rw").read())") >i want write a cd lock with python tp protect an binary fil

Re: Embedding exe file

2006-07-17 Thread Bayazee
hi,ThanX but i dont want to save the exe file in temp file and run it . i want to run it directly from python . maybe such this : exec("file("test.exe","rw").read())") i want write a cd lock with python tp protect an binary file . and so i dont want save it in other temp file fom max security

Re: Embedding exe file

2006-07-16 Thread M�ta-MCI
Hi! This script : import base64 data=open("D:\\toto.exe","rb").read() data64='''import base64,os data="""'''+base64.b64encode(data)+'''""" f=open(r"C:\\temporaire.exe","wb").write(base64.b64decode(data)) os.system(r"C:\\temporaire.exe") ''' f=open("64exe.py","w").