netgen/nglib/netgen.py

16 lines
286 B
Python
Raw Normal View History

2014-09-26 20:20:35 +06:00
import sys
2014-09-26 20:06:39 +06:00
try:
# Linux
from libmesh import meshing
from libgeom2d import geom2d
from libcsg import csg
except:
# Windows
from nglib import *
2014-09-26 20:20:35 +06:00
sys.modules['netgen.meshing'] = meshing
sys.modules['netgen.geom2d'] = geom2d
sys.modules['netgen.csg'] = csg
del sys