Self compiling python script? -


so designing program want able recompile script inside program. possible? in addition want able recompile regardless if python installed on machine. insight or recommendations appreciated.

for first part of question:

save file called "hello_world.py"

import os  print "hello world" os.system("python hello_world.py") 

of course, python doesn't compile.

for second part of question, use cx_freeze, py2app, py2exe, pyinstaller, etc.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -