summaryrefslogtreecommitdiff
path: root/getheader.py
diff options
context:
space:
mode:
authorLieuwe <lieuwemo@gmail.com>2011-03-20 17:04:40 (GMT)
committer Lieuwe <lieuwemo@gmail.com>2011-03-20 17:04:40 (GMT)
commit04a9cbcb8855e64db660a8c6e23d79114b4afd83 (patch)
treeab131b4808f016894cf85f8738b2743cece2273c /getheader.py
parent295626563f8710c9c8bdfb6414788a6858b8a1f8 (diff)
downloadpowder-04a9cbcb8855e64db660a8c6e23d79114b4afd83.zip
powder-04a9cbcb8855e64db660a8c6e23d79114b4afd83.tar.gz
MOAR FIX
Diffstat (limited to 'getheader.py')
-rw-r--r--getheader.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/getheader.py b/getheader.py
index 2c3679f..6a131d7 100644
--- a/getheader.py
+++ b/getheader.py
@@ -20,11 +20,15 @@ with open("./includes/defines.h") as fid:
if(line.startswith("#define") and line.count("PYEXT")>0):
print "using external console.py"
ext=True"""
-if("--64bit" in sys.argv):
+#print sys.argv
+if(len(sys.argv)>=2 and sys.argv[1]=="--64bit"):
ext=True
+ print "YEAHS"
+#raw_input("")
if(ext):
print "external"
+ #raw_input(sys.argv)
with open("./src/python/tpt_console.py") as fid:
consolepy=fid.read()
script="""
@@ -42,6 +46,7 @@ with open(os.path.join(dir,"tpt_console.py"),"w") as fid:
fid.write(''.join(out))
else:
print "internal"
+ #raw_input(sys.argv)
#unsigned char tpt_console_pyc[] = { 0x1B, 0x57};
lst=[]
compileall.compile_dir("./src/python", force=0)