This commit is contained in:
Matthias Hochsteger 2014-10-02 11:10:40 +00:00
parent 01197e7739
commit 98c57e3202
3 changed files with 9 additions and 6 deletions

View File

@ -1,5 +1,6 @@
from os import environ
from sys import path
from sys import platform as _platform
path.append(environ['NETGENDIR']+'/../lib')
del environ

View File

@ -1,8 +1,9 @@
try:
# Linux
from netgen import _platform
if _platform.startswith('linux') or _platform.startswith('darwin'):
# Linux or Mac OS X
from libcsg.csg import *
from libmesh.meshing import *
except:
if _platform.startswith('win'):
# Windows
from nglib.csg import *
from nglib.meshing import *

View File

@ -1,6 +1,7 @@
try:
# Linux
from netgen import _platform
if _platform.startswith('linux') or _platform.startswith('darwin'):
# Linux or Mac OS X
from libmesh.meshing import *
except:
if _platform.startswith('win'):
# Windows
from nglib.meshing import *