From 3ebd939f32ad03402f2b0c2e6e5c5a7a96a9bf27 Mon Sep 17 00:00:00 2001 From: Xinyu Hou Date: Tue, 4 Nov 2014 16:04:35 +0000 Subject: [PATCH] Made Mac version check before fixing --- ext/toolchain/commands1.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ext/toolchain/commands1.py b/ext/toolchain/commands1.py index e89c9114..2d3495f5 100644 --- a/ext/toolchain/commands1.py +++ b/ext/toolchain/commands1.py @@ -821,12 +821,11 @@ class InternalCommands: dir = self.getGenerator().binDir target = dir + "/Synergy.app/Contents/Frameworks" (major, minor) = self.getMacVersion() - - for root, dirs, files in os.walk(target): - for dir in dirs: - if dir.startswith("Qt"): - if major == 10: - if minor >= 9: + if major == 10: + if minor >= 9: + for root, dirs, files in os.walk(target): + for dir in dirs: + if dir.startswith("Qt"): self.try_chdir(target + "/" + dir +"/Versions") self.symlink("5", "Current") self.move("../Resources", "5")