1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Import PATH into scons environment

Fixes "/bin/sh: sdl2-config: command not found" when sdl2-config is not
in a standard system bin directory.
This commit is contained in:
Ryan Carsten Schmidt 2023-12-14 18:25:56 -06:00
parent 8256500877
commit 2352b4e6d8

View File

@ -1,4 +1,5 @@
import glob import glob
import os
import sys import sys
# Establish UTF-8 encoding for Python 2. # Establish UTF-8 encoding for Python 2.
@ -7,7 +8,7 @@ if sys.version_info < (3, 0):
sys.setdefaultencoding('utf-8') sys.setdefaultencoding('utf-8')
# Create build environment. # Create build environment.
env = Environment() env = Environment(ENV = {'PATH' : os.environ['PATH']})
# Determine compiler and linker flags for SDL. # Determine compiler and linker flags for SDL.
env.ParseConfig('sdl2-config --cflags') env.ParseConfig('sdl2-config --cflags')