After compiling in a unix working python file using
import py_compile py_compile.compile('server.py')
I get the .pyc file in the same directory, but when I try to run this file using "./server.pyc" in putty, all I get is the scrambled code as a result, and nothing really happens.
So the question is, how to compile the .py file in the .pyc file correctly and how to run this .pyc file?
ps: I checked the compilation and launch of the base script that worked.
source share