mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-27 06:10:34 +05:00
avoid dependency on env variable NETGENDIR in Python package
This commit is contained in:
parent
b46895db9c
commit
643ecc2e5e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user