Warum so kompliziert ?
Code:
ToCompile = "bla.py"
bla = open(ToCompile, 'r')
fH = open(ToCompile+'c', 'wb')
from imp import get_magic
fH.write(get_magic())
fH.write(compile(bla.read(),ToCompile,'exec'))
fH.close()
bla.close()
Quote:
Originally Posted by .XXShuzZzle
yes but not to 100% because it is still byte code
|
No, the bytecode in python is a easy converted code of "normal code".
Der beste weg ist, einen python2c zuverwenden, aber dann hat ist es für metin2 unbrauchbar.