generating compiled Tkinter python code -


i've noticed when creating gui using tkinter in python, when running final .py/.pyw file, i'm not presented .pyc file. i'd give application personal usage, without giving him full source code. there anyway of forcing interpreter generate pyc file, or other way nothing python bytecode without using py2exe or cxfreeze or similar things?

try:

import py_compile py_compile.compile(r'/path/to/your/file.py') 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -