avoid dependency on env variable NETGENDIR in Python package

This commit is contained in:
Matthias Hochsteger 2017-02-01 11:06:43 +01:00
parent b46895db9c
commit 643ecc2e5e

View File

@ -1,23 +1,14 @@
from os import environ import os
from sys import path from sys import path
from sys import platform as __platform from sys import platform as __platform
if __platform.startswith('linux'): if __platform.startswith('linux'):
path.append(environ['NETGENDIR']+'/../lib') path.append(os.path.dirname(__file__) + '/../../..')
if __platform.startswith('win'): if __platform.startswith('win'):
path.append(environ['NETGENDIR']) path.append(os.path.dirname(__file__) + '/../../../bin')
if __platform.startswith('darwin'): if __platform.startswith('darwin'):
path.append(environ['NETGENDIR']) path.append(os.path.dirname(__file__) + '/../../../../../MacOS')
# from libngpy import *
import libngpy import libngpy
# from libngpy import *
# import libngpy
# from . import csg
# from . import meshing
# from . import geom2d
del environ del environ
del path del path