From f57c9d5930d2d033fd71d44539b72b191991e2b2 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Tue, 24 Oct 2023 18:28:38 -0700 Subject: [PATCH] windows choose intended make.exe --- cue.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cue.py b/cue.py index 3f23865..a3d7a7d 100644 --- a/cue.py +++ b/cue.py @@ -693,8 +693,10 @@ def setup_for_build(args): if ci['os'] == 'windows': if os.path.exists(r'C:\Strawberry\perl\bin'): # Put strawberry perl in front of the PATH (so that Git Perl is further behind) + # Put Chocolatey\bin ahead to select correct make.exe logger.debug('Adding Strawberry Perl in front of the PATH') - os.environ['PATH'] = os.pathsep.join([r'C:\Strawberry\c\bin', + os.environ['PATH'] = os.pathsep.join([r'C:\ProgramData\Chocolatey\bin', + r'C:\Strawberry\c\bin', r'C:\Strawberry\perl\site\bin', r'C:\Strawberry\perl\bin', os.environ['PATH']])