diff options
Diffstat (limited to 'demoscript/Util.py')
-rw-r--r-- | demoscript/Util.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/demoscript/Util.py b/demoscript/Util.py index 03f1b988dd2..4c5680363e6 100644 --- a/demoscript/Util.py +++ b/demoscript/Util.py @@ -320,13 +320,14 @@ def configurePaths(): # # Add third party home to PATH, to use db_xx tools # - if isWin32(): - addenv("PATH", os.path.join(getThirdpartyHome(), "bin\\x64" if x64 else "bin")) - if getCppCompiler() == "VC110": - addenv("PATH", os.path.join(getThirdpartyHome(), "bin\\vc110\\x64" if x64 else "bin\\vc110")) - elif isDarwin(): - addenv("PATH", os.path.join(getThirdpartyHome(), "bin")) - + thirdPartyHome = getThirdpartyHome() + if thirdPartyHome: + if isWin32(): + addenv("PATH", os.path.join(getThirdpartyHome(), "bin\\x64" if x64 else "bin")) + if getCppCompiler() == "VC110": + addenv("PATH", os.path.join(getThirdpartyHome(), "bin\\vc110\\x64" if x64 else "bin\\vc110")) + elif isDarwin(): + addenv("PATH", os.path.join(getThirdpartyHome(), "bin")) if binDir != os.path.join(getIceDir("cpp"), "bin"): addenv("PATH", binDir) |