plugins/c_ext/c_ext.py
changeset 418 01f6bfc01251
parent 402 984e238e63d0
child 420 c093ec48f2fd
--- a/plugins/c_ext/c_ext.py	Fri Oct 09 17:52:00 2009 +0200
+++ b/plugins/c_ext/c_ext.py	Thu Oct 15 17:39:26 2009 +0200
@@ -341,10 +341,7 @@
         cfile.write(text)
         cfile.close()
         
-        if wx.Platform == '__WXMSW__':
-            matiec_flags = " -I../../matiec/lib"
-        else:
-            matiec_flags = " -I../matiec/lib"
+        matiec_flags = '"-I%s"'%os.path.abspath(self.GetPlugRoot().GetIECLibPath())
         
         return [(Gen_Cfile_path, str(self.CExtension.getCFLAGS() + matiec_flags))],str(self.CExtension.getLDFLAGS()),True