Skip to content

Commit

Permalink
Update SConstruct
Browse files Browse the repository at this point in the history
Fixed framework presence check to avoid TypeError:
TypeError: a bytes-like object is required, not 'str':
  • Loading branch information
dirkvdb authored Feb 27, 2020
1 parent e3f4e76 commit ddd2cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def parse_config(context, config, checks='--libs --cflags'):
# and thus breaks knowledge below that gdal worked
# TODO - upgrade our scons logic to support Framework linking
if env['PLATFORM'] == 'Darwin':
if value and '-framework GDAL' in value:
if value and b'-framework GDAL' in value:
env['LIBS'].append('gdal')
if os.path.exists('/Library/Frameworks/GDAL.framework/unix/lib'):
env['LIBPATH'].insert(0,'/Library/Frameworks/GDAL.framework/unix/lib')
Expand Down

0 comments on commit ddd2cea

Please sign in to comment.