summaryrefslogtreecommitdiff
path: root/getheader.py
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2011-03-02 20:43:20 (GMT)
committer Cracker64 <cracker642@gmail.com>2011-03-02 20:43:20 (GMT)
commit9fffbb88da1062911c42146f4e9022a045177f75 (patch)
tree27009a59552c944a934ea1edf796472d6c937d04 /getheader.py
parent13e90886c1d4ae571707c8f31a7702fce7b2ec74 (diff)
downloadpowder-9fffbb88da1062911c42146f4e9022a045177f75.zip
powder-9fffbb88da1062911c42146f4e9022a045177f75.tar.gz
console things, set commands use keywords for arguments.
Diffstat (limited to 'getheader.py')
-rw-r--r--getheader.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/getheader.py b/getheader.py
new file mode 100644
index 0000000..558726c
--- /dev/null
+++ b/getheader.py
@@ -0,0 +1,13 @@
+import sys
+import os.path
+path=os.path.join(sys.exec_prefix,"include","python%s"%sys.version[:3])
+#print "headers at ",repr(path)
+#-lpython2.3 -lm -L/usr/lib/python2.3/config
+args="-lpython%s -lm -L%s"%(sys.version[:3],os.path.join(sys.exec_prefix,"lib","python%s"%sys.version[:3],"config"))
+print " linux args are"
+print args,"-I%s"%path
+
+path=os.path.join(sys.exec_prefix,"include")
+args="-lpython%s -lm -L%s"%(sys.version[:3],os.path.join(sys.exec_prefix,"lib","config"))#,"python%s"%sys.version[:3]
+print "\n windows args are"
+print args,"-I%s"%path \ No newline at end of file