private __platform variable

This commit is contained in:
Matthias Hochsteger 2014-10-02 12:29:55 +00:00
parent 98c57e3202
commit d0f5d033fc
3 changed files with 10 additions and 7 deletions

View File

@ -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

View File

@ -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 *

View File

@ -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 *