mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-27 06:10:34 +05:00
ce47af852e
Don't import if Netgen was configured with USE_GUI=OFF
18 lines
514 B
Python
18 lines
514 B
Python
import os
|
|
import sys
|
|
|
|
# import tkinter only if Netgen was configured with USE_GUI=ON
|
|
if @IMPORT_TKINTER@:
|
|
import tkinter
|
|
|
|
_netgen_bin_dir=os.path.realpath(os.path.join(os.path.dirname(__file__),'..','@NETGEN_PYTHON_RPATH_BIN@'))
|
|
_netgen_lib_dir=os.path.realpath(os.path.join(os.path.dirname(__file__),'..','@NETGEN_PYTHON_RPATH@'))
|
|
|
|
if sys.platform.startswith('win'):
|
|
os.environ['PATH'] += ';'+os.path.realpath(os.path.join(os.path.dirname(__file__),'../../../bin'))
|
|
|
|
del sys
|
|
del os
|
|
|
|
from . import libngpy
|