summaryrefslogtreecommitdiff
path: root/demoscript/Util.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-10-18 00:20:24 +0200
committerJose <jose@zeroc.com>2014-10-18 00:20:24 +0200
commitf2b099b01e6f90e86410bdb2d4e0068307de12e0 (patch)
tree8a87d247be5274258f58c8a752b26324671abf1b /demoscript/Util.py
parentDependency fixes: (diff)
downloadice-f2b099b01e6f90e86410bdb2d4e0068307de12e0.tar.bz2
ice-f2b099b01e6f90e86410bdb2d4e0068307de12e0.tar.xz
ice-f2b099b01e6f90e86410bdb2d4e0068307de12e0.zip
Distribution updates
Diffstat (limited to 'demoscript/Util.py')
-rw-r--r--demoscript/Util.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/demoscript/Util.py b/demoscript/Util.py
index d7b01784db2..b0f22c727e6 100644
--- a/demoscript/Util.py
+++ b/demoscript/Util.py
@@ -263,7 +263,6 @@ def configurePaths():
libDir = os.path.join(libDir, "amd64")
binDir = os.path.join(binDir, "amd64")
elif isWin32():
- libDir = os.path.join(libDir, "x64")
binDir = os.path.join(binDir, "x64")
elif not isDarwin():
libDir = libDir + "64"
@@ -311,8 +310,12 @@ def configurePaths():
addenv("PYTHONPATH", os.path.join(getIceDir("py"), "python", "x64"))
else:
addenv("PYTHONPATH", os.path.join(getIceDir("py"), "python"))
- addenv("RUBYLIB", os.path.join(getIceDir("rb"), "ruby"))
+ if isWin32() and x64:
+ addenv("RUBYLIB", os.path.join(getIceDir("rb"), "ruby", "x64"))
+ else:
+ addenv("RUBYLIB", os.path.join(getIceDir("rb"), "ruby"))
+
if getMapping() == "js":
addenv("NODE_PATH", os.path.join(getIceDir("js"), "src"))
addenv("NODE_PATH", ".")
@@ -344,16 +347,16 @@ def getMirrorDir(mapping = None):
# Split off the front portion portion
pref = here[:len(toplevel)]
assert pref == toplevel
- post = here[len(toplevel)+1:]
+ post = here[len(toplevel) + 1:]
# In the source tree
if sourcedist:
- scriptPath = os.path.join(post.split(os.sep)[2:])
+ scriptPath = os.sep.join(post.split(os.sep)[2:])
mappingDir = mappingDirs[mapping][0]
else:
- scriptPath = os.path.join(post.split(os.sep)[1:])
+ scriptPath = os.sep.join(post.split(os.sep)[1:])
mappingDir = mappingDirs[mapping][1]
- return os.path.join(pref, mappingDir, *scriptPath)
+ return os.path.join(pref, mappingDir, scriptPath)
def getIceDir(subdir = None):
"""Get the top level directory of the ice distribution. If ICE_HOME