mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
private __platform variable
This commit is contained in:
parent
98c57e3202
commit
d0f5d033fc
@ -1,7 +1,10 @@
|
||||
from os import environ
|
||||
from sys import path
|
||||
from sys import platform as _platform
|
||||
from sys import platform as __platform
|
||||
path.append(environ['NETGENDIR']+'/../lib')
|
||||
|
||||
from . import csg
|
||||
from . import meshing
|
||||
|
||||
del environ
|
||||
del path
|
||||
|
@ -1,9 +1,9 @@
|
||||
from netgen import _platform
|
||||
if _platform.startswith('linux') or _platform.startswith('darwin'):
|
||||
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 *
|
||||
if _platform.startswith('win'):
|
||||
if __platform.startswith('win'):
|
||||
# Windows
|
||||
from nglib.csg import *
|
||||
from nglib.meshing import *
|
||||
|
@ -1,7 +1,7 @@
|
||||
from netgen import _platform
|
||||
if _platform.startswith('linux') or _platform.startswith('darwin'):
|
||||
from netgen import __platform
|
||||
if __platform.startswith('linux') or __platform.startswith('darwin'):
|
||||
# Linux or Mac OS X
|
||||
from libmesh.meshing import *
|
||||
if _platform.startswith('win'):
|
||||
if __platform.startswith('win'):
|
||||
# Windows
|
||||
from nglib.meshing import *
|
||||
|
Loading…
Reference in New Issue
Block a user