Don't import tkinter when Netgen is loaded

This commit is contained in:
Matthias Hochsteger 2019-08-27 16:31:34 +02:00
parent 76ab713a80
commit ce90bf8775
2 changed files with 0 additions and 9 deletions

View File

@ -1,8 +1,3 @@
if(USE_GUI)
set(IMPORT_TKINTER True)
else()
set(IMPORT_TKINTER False)
endif()
configure_file(__init__.py ${CMAKE_CURRENT_BINARY_DIR}/__init__.py @ONLY)
install(FILES

View File

@ -1,10 +1,6 @@
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@'))