Don't start GUI when building documentation

This commit is contained in:
Matthias Hochsteger 2021-06-01 16:44:59 +02:00
parent 6dcc89ad04
commit df9964f6cd

View File

@ -19,11 +19,9 @@ def StartGUI():
pass
if not netgen.libngpy._meshing._netgen_executable_started:
# catch exception for building html docu on server without display
try:
import os
if not "NETGEN_DOCUMENTATION_RST_FORMAT" in os.environ:
StartGUI()
except:
pass
def Snapshot(w,h, filename=None):
netgen.Redraw(blocking=True)