From 279b9a12c0b733d579e8afdc5fe7ede74f45863c Mon Sep 17 00:00:00 2001 From: Taka Date: Thu, 29 Nov 2018 13:20:30 +0000 Subject: [PATCH] Tweaked how we capture output from the VASSAL shim. --- vasl_templates/webapp/vassal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vasl_templates/webapp/vassal.py b/vasl_templates/webapp/vassal.py index 818c666..5bac5e1 100644 --- a/vasl_templates/webapp/vassal.py +++ b/vasl_templates/webapp/vassal.py @@ -315,7 +315,7 @@ class VassalShim: # we won't be able to show the stack trace, just a generic "VASSAL shim failed" message :-( with TempFile() as buf1, TempFile() as buf2: kwargs = {} - if not IS_FROZEN: + if not ( os.name == "nt" and IS_FROZEN ): kwargs = { "stdout": buf1.temp_file, "stderr": buf2.temp_file } if os.name == "nt": # NOTE: Using CREATE_NO_WINDOW doesn't fix the problem of VASSAL's UI sometimes appearing,