netgen/nglib/netgen.py
Matthias Hochsteger ca9078c0d3 netgen module fix
2014-09-26 14:20:35 +00:00

16 lines
286 B
Python

import sys
try:
# Linux
from libmesh import meshing
from libgeom2d import geom2d
from libcsg import csg
except:
# Windows
from nglib import *
sys.modules['netgen.meshing'] = meshing
sys.modules['netgen.geom2d'] = geom2d
sys.modules['netgen.csg'] = csg
del sys