diff options
| author | Lieuwe <lieuwemo@gmail.com> | 2011-02-26 10:49:23 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-03-02 20:54:19 (GMT) |
| commit | 364759ff0812a8049b2f3ca249a34a57fa2e4325 (patch) | |
| tree | 0c83dc67f47ff9a6b8d4177e282744f8572af14a /getheader.py | |
| parent | 647ff2bff073d525f1c02eea5c4e01e8dcd3f279 (diff) | |
| download | powder-364759ff0812a8049b2f3ca249a34a57fa2e4325.zip powder-364759ff0812a8049b2f3ca249a34a57fa2e4325.tar.gz | |
python console
Diffstat (limited to 'getheader.py')
| -rw-r--r-- | getheader.py | 13 |
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 |
