From f66c8023f9abd3a6b1725a3bd2b7dc1a17c5ee65 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 28 Jan 2013 19:32:41 +0000 Subject: [PATCH] fix error --- makepanda/makepandacore.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index f78483da33..74dcd6e068 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -2205,7 +2205,7 @@ def SetupBuildEnvironment(compiler): if GetHost() != 'windows': # Get the current ldpath = os.environ.get("LD_LIBRARY_PATH", "").split(os.pathsep) - if (GetHost() == 'darwin'): + if GetHost() == 'darwin': dyldpath = os.environ.get("DYLD_LIBRARY_PATH", "").split(os.pathsep) # Remove any potential current Panda installation lib dirs @@ -2214,10 +2214,11 @@ def SetupBuildEnvironment(compiler): i.startswith("/usr/local/panda"): ldpath.remove(i) - for i in dyldpath[:]: - if i.startswith("/Applications/Panda3D") or \ - i.startswith("/Developer/Panda3D"): - dyldpath.remove(i) + if GetHost() == 'darwin': + for i in dyldpath[:]: + if i.startswith("/Applications/Panda3D") or \ + i.startswith("/Developer/Panda3D"): + dyldpath.remove(i) # Add built/lib/ to (DY)LD_LIBRARY_PATH ldpath.insert(0, os.path.join(builtdir, 'lib'))