[python] Import tkinter only when necessary

Don't import if Netgen was configured with USE_GUI=OFF
This commit is contained in:
Matthias Hochsteger
2017-11-06 15:00:06 +01:00
parent 375e564329
commit ce47af852e
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
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