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:
parent
8256500877
commit
2352b4e6d8
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user