mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-23 19:30:33 +05:00
Don't start GUI when building documentation
This commit is contained in:
parent
6dcc89ad04
commit
df9964f6cd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user