summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rwxr-xr-xcpp/src/ca/iceca6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/ca/iceca b/cpp/src/ca/iceca
index 9f882e822ad..fb843cba17b 100755
--- a/cpp/src/ca/iceca
+++ b/cpp/src/ca/iceca
@@ -74,8 +74,10 @@ if sys.argv[script] == "import":
# development. "/usr/bin" handles RPM installs and "/opt/..."
# handles standard tarball installs.
#
- for bindir in [os.path.dirname(sys.argv[0]), os.path.join(os.getenv("ICE_HOME"), "bin"), ".", "/usr/bin", \
- "/opt/Ice-3.2.0/bin"]:
+ checkLocations = [os.path.dirname(sys.argv[0]), ".", "/usr/bin", "/opt/Ice-3.2.0/bin"]
+ if os.getenv("ICE_HOME"):
+ checkLocations.append(os.path.join(os.getenv("ICE_HOME"), "bin"))
+ for bindir in checkLocations:
bindir = os.path.normpath(bindir)
if os.path.exists(os.path.join(bindir, "ImportKey.class")):
break