mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-05 01:14:16 +05:00
os test
This commit is contained in:
parent
01197e7739
commit
98c57e3202
@ -1,5 +1,6 @@
|
|||||||
from os import environ
|
from os import environ
|
||||||
from sys import path
|
from sys import path
|
||||||
|
from sys import platform as _platform
|
||||||
path.append(environ['NETGENDIR']+'/../lib')
|
path.append(environ['NETGENDIR']+'/../lib')
|
||||||
|
|
||||||
del environ
|
del environ
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
try:
|
from netgen import _platform
|
||||||
# Linux
|
if _platform.startswith('linux') or _platform.startswith('darwin'):
|
||||||
|
# Linux or Mac OS X
|
||||||
from libcsg.csg import *
|
from libcsg.csg import *
|
||||||
from libmesh.meshing import *
|
from libmesh.meshing import *
|
||||||
except:
|
if _platform.startswith('win'):
|
||||||
# Windows
|
# Windows
|
||||||
from nglib.csg import *
|
from nglib.csg import *
|
||||||
from nglib.meshing import *
|
from nglib.meshing import *
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
try:
|
from netgen import _platform
|
||||||
# Linux
|
if _platform.startswith('linux') or _platform.startswith('darwin'):
|
||||||
|
# Linux or Mac OS X
|
||||||
from libmesh.meshing import *
|
from libmesh.meshing import *
|
||||||
except:
|
if _platform.startswith('win'):
|
||||||
# Windows
|
# Windows
|
||||||
from nglib.meshing import *
|
from nglib.meshing import *
|
||||||
|
Loading…
Reference in New Issue
Block a user