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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -