windows fixes

This commit is contained in:
Christoph Wintersteiger 2014-10-08 13:37:37 +00:00
parent 65c21fd44b
commit f89060e260
2 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,10 @@
from os import environ
from sys import path
from sys import platform as __platform
path.append(environ['NETGENDIR']+'/../lib')
if __platform.startswith('linux') or __platform.startswith('darwin'):
path.append(environ['NETGENDIR']+'/../lib')
if __platform.startswith('win'):
path.append(environ['NETGENDIR'])
from . import csg
from . import meshing

View File

@ -2,10 +2,11 @@ from netgen import __platform
if __platform.startswith('linux') or __platform.startswith('darwin'):
# Linux or Mac OS X
from libcsg.csg import *
from libcsgvis import *
from libcsgvis.csgvis import *
import libmesh.meshing
# from libmesh.meshing import *
if __platform.startswith('win'):
# Windows
from nglib.csg import *
from nglib.csgvis import *
from nglib.meshing import *