1 How to create .pyc
a. In order to create compiled python code, you need to run this in directory of your python source code.
python -mcompileall .
b. In your python interpreter, execute the following commands
>>> import py_compile
>>> py_compile.compile('test.py')
>>> py_compile.compile('test.py')
No comments:
Post a Comment