mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-24 03:40:34 +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
|
pass
|
||||||
|
|
||||||
if not netgen.libngpy._meshing._netgen_executable_started:
|
if not netgen.libngpy._meshing._netgen_executable_started:
|
||||||
# catch exception for building html docu on server without display
|
import os
|
||||||
try:
|
if not "NETGEN_DOCUMENTATION_RST_FORMAT" in os.environ:
|
||||||
StartGUI()
|
StartGUI()
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def Snapshot(w,h, filename=None):
|
def Snapshot(w,h, filename=None):
|
||||||
netgen.Redraw(blocking=True)
|
netgen.Redraw(blocking=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user