mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-12 16:17:29 +05:00
allow StartGUI to fail
This commit is contained in:
parent
df9964f6cd
commit
a62acfb992
@ -21,7 +21,10 @@ def StartGUI():
|
|||||||
if not netgen.libngpy._meshing._netgen_executable_started:
|
if not netgen.libngpy._meshing._netgen_executable_started:
|
||||||
import os
|
import os
|
||||||
if not "NETGEN_DOCUMENTATION_RST_FORMAT" in os.environ:
|
if not "NETGEN_DOCUMENTATION_RST_FORMAT" in os.environ:
|
||||||
StartGUI()
|
try:
|
||||||
|
StartGUI()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
def Snapshot(w,h, filename=None):
|
def Snapshot(w,h, filename=None):
|
||||||
netgen.Redraw(blocking=True)
|
netgen.Redraw(blocking=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user