mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-14 10:08:32 +05:00
windows fixes
This commit is contained in:
parent
65c21fd44b
commit
f89060e260
@ -1,7 +1,10 @@
|
|||||||
from os import environ
|
from os import environ
|
||||||
from sys import path
|
from sys import path
|
||||||
from sys import platform as __platform
|
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 csg
|
||||||
from . import meshing
|
from . import meshing
|
||||||
|
@ -2,10 +2,11 @@ from netgen import __platform
|
|||||||
if __platform.startswith('linux') or __platform.startswith('darwin'):
|
if __platform.startswith('linux') or __platform.startswith('darwin'):
|
||||||
# Linux or Mac OS X
|
# Linux or Mac OS X
|
||||||
from libcsg.csg import *
|
from libcsg.csg import *
|
||||||
from libcsgvis import *
|
from libcsgvis.csgvis import *
|
||||||
import libmesh.meshing
|
import libmesh.meshing
|
||||||
# from libmesh.meshing import *
|
# from libmesh.meshing import *
|
||||||
if __platform.startswith('win'):
|
if __platform.startswith('win'):
|
||||||
# Windows
|
# Windows
|
||||||
from nglib.csg import *
|
from nglib.csg import *
|
||||||
|
from nglib.csgvis import *
|
||||||
from nglib.meshing import *
|
from nglib.meshing import *
|
||||||
|
Loading…
Reference in New Issue
Block a user