mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 12:50:34 +05:00
os test
This commit is contained in:
parent
01197e7739
commit
98c57e3202
@ -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
|
||||
|
@ -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 *
|
||||
|
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user