Commit dc54601f authored by chase@chromium.org's avatar chase@chromium.org

Update git-try to find trychange after move.

TBR=maruel
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/173249

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@24064 0039d316-1c4b-4281-b951-d872f2087c98
parent cabf2adf
#!/usr/bin/python
# Repo lives in ~evanm/projects/git-try -- feel free to send patches.
import getpass
import optparse
import os
......@@ -104,13 +102,12 @@ def TryChange(args):
"""Put a patch on the try server using SVN."""
root_dir = Backquote(['git', 'rev-parse', '--show-cdup'])
script_path = os.path.dirname(sys.argv[0])
path = os.path.join(script_path, '..')
sys.path.append(path)
sys.path.append(script_path)
try:
import trychange
except ImportError, e:
print "Error trying to import trychange from", path
print "git-try expects to live at depot_tools/git-try-repo/git-try"
print "Error trying to import trychange from", script_path
print "git-try expects to live at depot_tools/git-try"
raise e
trychange.checkout_root = os.path.abspath(root_dir)
trychange.TryChange(args, None, False)
......
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