Skip to content

Commit

Permalink
Prefer env['PLATFORM'] over sys.platform
Browse files Browse the repository at this point in the history
  • Loading branch information
topher800 committed Dec 31, 2024
1 parent 21ca936 commit 243cb6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eol_scons/tools/qwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"""


import sys
import subprocess
import eol_scons.parseconfig as pc

Expand All @@ -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'
Expand Down

0 comments on commit 243cb6f

Please sign in to comment.