summaryrefslogtreecommitdiff
path: root/demoscript/Util.py
diff options
context:
space:
mode:
Diffstat (limited to 'demoscript/Util.py')
-rw-r--r--demoscript/Util.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/demoscript/Util.py b/demoscript/Util.py
index 97b45e1682e..d52c89e8130 100644
--- a/demoscript/Util.py
+++ b/demoscript/Util.py
@@ -267,10 +267,12 @@ def configurePaths():
sys.stdout.write("(64bit) ")
sys.stdout.write("]\n")
+ binDir = os.path.join(getIceDir("cpp"), "bin")
+
# Always add the bin directory to the PATH, it contains executable
# which might not be in the compiler/arch bin sub-directory.
- binDir = os.path.join(getIceDir("cpp"), "bin")
- addenv("PATH", binDir)
+ if iceHome != "/usr":
+ addenv("PATH", binDir)
if iceHome: