diff options
| author | Lieuwe <lieuwemo@gmail.com> | 2011-03-03 20:12:57 (GMT) |
|---|---|---|
| committer | Lieuwe <lieuwemo@gmail.com> | 2011-03-03 20:12:57 (GMT) |
| commit | fc70b5bb783ff90865f35f20edb8436a8fb7dc40 (patch) | |
| tree | 040d2affaee939cd4e544c928e7f658c73f30f37 /getheader.py | |
| parent | eab871c77487714cab68b9e4753a2bcf7ece79f4 (diff) | |
| download | powder-fc70b5bb783ff90865f35f20edb8436a8fb7dc40.zip powder-fc70b5bb783ff90865f35f20edb8436a8fb7dc40.tar.gz | |
tpt_console.py now internal
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" |
