mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
windows fixes
This commit is contained in:
parent
65c21fd44b
commit
f89060e260
@ -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
|
||||
|
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user