From 2352b4e6d856169613418b57df7ac469b25540b5 Mon Sep 17 00:00:00 2001 From: Ryan Carsten Schmidt Date: Thu, 14 Dec 2023 18:25:56 -0600 Subject: [PATCH] Import PATH into scons environment Fixes "/bin/sh: sdl2-config: command not found" when sdl2-config is not in a standard system bin directory. --- OSBindings/SDL/SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OSBindings/SDL/SConstruct b/OSBindings/SDL/SConstruct index f8c614a18..0a8eb2537 100644 --- a/OSBindings/SDL/SConstruct +++ b/OSBindings/SDL/SConstruct @@ -1,4 +1,5 @@ import glob +import os import sys # Establish UTF-8 encoding for Python 2. @@ -7,7 +8,7 @@ if sys.version_info < (3, 0): sys.setdefaultencoding('utf-8') # Create build environment. -env = Environment() +env = Environment(ENV = {'PATH' : os.environ['PATH']}) # Determine compiler and linker flags for SDL. env.ParseConfig('sdl2-config --cflags')