tp.py: setup: Add execute flag to compilers on posix systems

This commit is contained in:
Jcw87 2023-01-30 01:10:07 -08:00
parent 6b031acca9
commit 5d49bb7777
1 changed files with 4 additions and 0 deletions

View File

@ -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")