- Sun Aug 03, 2014 5:45 pm
#382192
Hello, it me again,
I got segmentation fault with this.. am i doing something wrong?
(python 3.2, Mac OS X 10.9)
Thanks
I got segmentation fault with this.. am i doing something wrong?
(python 3.2, Mac OS X 10.9)
Thanks
Code: Select all
#!/Library/Frameworks/Python.framework/Versions/3.2/bin/python3
# -*- coding: utf-8 -*-
import os
from pymaxwell import *
f = "particles-00000.bin"
n = os.path.splitext(f)[0]
s = Cmaxwell(mwcallback)
m = CextensionManager.instance()
m.loadAllExtensions()
e = m.createDefaultGeometryProceduralExtension('MaxwellParticles')
p = e.getExtensionData()
p.setString('FileName', os.path.realpath(f))
# and now.. it's.. Segmentation fault
o = s.createGeometryProceduralObject(n, p)
s.writeMXS("{}.mxs".format(n))