How to generate byte code file in python ?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
import py_compile
py_compile.compile(‘abc.py’) #single file compile
import compileall
compileall.compile_dir(directoryname) #compiles every single python file present in the directory