mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-14 10:08:32 +05:00
24 lines
614 B
Python
24 lines
614 B
Python
import os
|
|
import sys
|
|
|
|
from . import config
|
|
_netgen_bin_dir=os.path.realpath(os.path.join(os.path.dirname(__file__),'..',config.NETGEN_PYTHON_RPATH_BIN))
|
|
_netgen_lib_dir=os.path.realpath(os.path.join(os.path.dirname(__file__),'..',config.NETGEN_PYTHON_RPATH))
|
|
|
|
if sys.platform.startswith('win'):
|
|
v = sys.version_info
|
|
if v.major == 3 and v.minor >= 8:
|
|
os.add_dll_directory(_netgen_bin_dir)
|
|
else:
|
|
os.environ['PATH'] += ';'+_netgen_bin_dir
|
|
|
|
del sys
|
|
del os
|
|
|
|
from . import libngpy
|
|
|
|
from netgen.libngpy._meshing import _Redraw
|
|
|
|
def Redraw(*args, **kwargs):
|
|
return _Redraw(*args, **kwargs)
|