mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 21:30:35 +05:00
private __platform variable
This commit is contained in:
parent
98c57e3202
commit
d0f5d033fc
@ -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')
|
path.append(environ['NETGENDIR']+'/../lib')
|
||||||
|
|
||||||
|
from . import csg
|
||||||
|
from . import meshing
|
||||||
|
|
||||||
del environ
|
del environ
|
||||||
del path
|
del path
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
from netgen import _platform
|
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 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.meshing import *
|
from nglib.meshing import *
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
from netgen import _platform
|
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 libmesh.meshing import *
|
from libmesh.meshing import *
|
||||||
if _platform.startswith('win'):
|
if __platform.startswith('win'):
|
||||||
# Windows
|
# Windows
|
||||||
from nglib.meshing import *
|
from nglib.meshing import *
|
||||||
|
Loading…
Reference in New Issue
Block a user