diff --git a/eol_scons/tools/qwt.py b/eol_scons/tools/qwt.py index c7ede59..58e268f 100644 --- a/eol_scons/tools/qwt.py +++ b/eol_scons/tools/qwt.py @@ -7,7 +7,6 @@ """ -import sys import subprocess import eol_scons.parseconfig as pc @@ -19,7 +18,7 @@ def generate(env): if env.get('QT_VERSION') == 5: qwtpcname = 'Qt5Qwt6' - if sys.platform == 'darwin': + if env['PLATFORM'] == 'darwin': brewPath = subprocess.run(['brew', '--prefix'], capture_output=True, text=True).stdout.strip() qwtPcPath = brewPath + '/opt/qwt/lib/pkgconfig' qtPcPath = brewPath + '/opt/qt/libexec/lib/pkgconfig'