Commit 94ba0248 authored by chase@chromium.org's avatar chase@chromium.org

Fixes based on maruel's comments.

BUG=none
TEST=none
Review URL: http://codereview.chromium.org/281007

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@29194 0039d316-1c4b-4281-b951-d872f2087c98
parent 6f3c2c67
......@@ -8,7 +8,7 @@ import sys
# Try locating depot_tools from the user's PATH.
depot_tools_path = None
for path in os.environ.get("PATH").split(':'):
for path in os.environ.get("PATH").split(os.pathsep):
if not path.endswith("depot_tools"):
continue
depot_tools_path = path
......@@ -26,8 +26,7 @@ else:
try:
import git_cl_hooks
except ImportError:
print ("ERROR: Could not import git_cl_hooks from your depot_tools at %s." %
depot_tools_path)
print "ERROR: Could not import git_cl_hooks from depot_tools in your PATH."
print "ERROR: Make sure %s is up-to-date and try again." % depot_tools_path
sys.exit(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment