1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +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 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')