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
Post a Comment