diff options
Diffstat (limited to 'getheader.py')
| -rw-r--r-- | getheader.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/getheader.py b/getheader.py index 58af0ef..fcc0302 100644 --- a/getheader.py +++ b/getheader.py @@ -29,9 +29,9 @@ finally: with open(fname,"r") as fid: for char in fid.read(): - lst.append("0x"+hex(ord(char))) + lst.append(hex(ord(char))) tmp=",".join(lst) -out=''.join(["unsigned char tpt_console_pyc[] = {",tmp,"};"]) +out=''.join(["#include <Python.h>\nunsigned char tpt_console_pyc[] = {",tmp,"};"]) with open("./includes/pyconsole.h","w") as fid: fid.write(out) print "done" |
