Skip to content

Commit be15f7e

Browse files
committed
Further safety-valves for non-blocking execution, especially on Windows
1 parent bf3a5ef commit be15f7e

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

tools/Python/mccodelib/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,10 @@ def call_if_not_none(fct, *args):
918918
''' shorthand utility for calling a function if it is defined, and otherwise ignoring it '''
919919
if fct:
920920
fct(*args)
921+
922+
if os.name == 'nt':
923+
cmd = 'start ' + cmd
924+
921925
if not cwd:
922926
cwd = os.getcwd()
923927

tools/Python/mcgui/mcgui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ def handleMcDisplayWeb(self):
743743
DISPLAY="mxdisplay"
744744
self.emitter.status('Running ' + DISPLAY + '-webgl-classic...')
745745
try:
746-
cmd = DISPLAY+'-webgl-classic --default -n100 ' + os.path.basename(self.state.getInstrumentFile()) + '&'
746+
cmd = DISPLAY+'-webgl-classic -y -n100 ' + os.path.basename(self.state.getInstrumentFile()) + '&'
747747
self.emitter.message(cmd, gui=True)
748748
self.emitter.message('', gui=True)
749749

0 commit comments

Comments
 (0)