diff seg2matrix/CGData/SegToMatrix.py @ 35:8ef79bd0be9a

modify
author jingchunzhu <jingchunzhu@gmail.com>
date Fri, 24 Jul 2015 16:14:36 -0700
parents ab20c0d04f4a
children 59dbe857f5d4
line wrap: on
line diff
--- a/seg2matrix/CGData/SegToMatrix.py	Fri Jul 24 14:56:37 2015 -0700
+++ b/seg2matrix/CGData/SegToMatrix.py	Fri Jul 24 16:14:36 2015 -0700
@@ -1,10 +1,12 @@
-
-
 import ctypes
 import os
 
 base = os.path.dirname(os.path.abspath(__file__))
 libFile = base + "/CsegToMatrix.so"
+
+os.system("rm -f "+ base+"/CsegToMatrix.so")
+os.system("g++ -fPIC --shared "+ base +"/CsegToMatrix.cc -o "+ base +"/CsegToMatrix.so")
+
 if os.path.exists(libFile):
     segLib = ctypes.cdll.LoadLibrary(libFile)