summaryrefslogtreecommitdiff
path: root/py/python/Ice.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2013-02-19 14:28:46 +0100
committerJose <jose@zeroc.com>2013-02-19 14:28:46 +0100
commit306825bcb814a72e2c31b68b3b46594fc4d9d648 (patch)
tree94bddaf28023740714d2e18cfd0553f08e1f3726 /py/python/Ice.py
parentICE-5260 @installdir@ not replaced on repair (diff)
downloadice-306825bcb814a72e2c31b68b3b46594fc4d9d648.tar.bz2
ice-306825bcb814a72e2c31b68b3b46594fc4d9d648.tar.xz
ice-306825bcb814a72e2c31b68b3b46594fc4d9d648.zip
Fixed (ICE-5236) - Python Ice.getSliceDir()
Diffstat (limited to 'py/python/Ice.py')
-rw-r--r--py/python/Ice.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/py/python/Ice.py b/py/python/Ice.py
index f23c6a675e9..0563a6a3592 100644
--- a/py/python/Ice.py
+++ b/py/python/Ice.py
@@ -324,6 +324,14 @@ def getSliceDir():
if os.path.exists(dir):
return dir
+ elif sys.platform == "darwin":
+ #
+ # Check the default OS X location.
+ #
+ dir = os.path.join("/", "Library", "Developer", "Ice-" + iceVer, "slice")
+ if os.path.exists(dir):
+ return dir
+
return None
#