From 0048b5be3334d9761e064b9b0595b9b71c9b5c64 Mon Sep 17 00:00:00 2001 From: Jcw87 Date: Mon, 30 Jan 2023 01:10:07 -0800 Subject: [PATCH] tp.py: setup: Add execute flag to compilers on posix systems --- tools/tp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/tp.py b/tools/tp.py index 9a60fcfbf7..ede633b5ea 100644 --- a/tools/tp.py +++ b/tools/tp.py @@ -295,6 +295,10 @@ def setup(debug: bool, game_path: Path, tools_path: Path): ) sys.exit(1) + # add execute flag to compilers for WSL + if os.name == 'posix': + subprocess.run(['chmod', '+x'] + list(compilers.glob("*/*.exe"))) + # text = Text("--- Extracting game assets") text.stylize("bold magenta")