Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: ensure_dependencies.py

Issue 5570595961962496: Issue 1806 - ensure_dependencies.py should update its own directory by default, not current work dir (Closed)
Patch Set: Created Jan. 14, 2015, 8:49 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ensure_dependencies.py
===================================================================
--- a/ensure_dependencies.py
+++ b/ensure_dependencies.py
@@ -275,11 +275,11 @@ def _ensure_line_exists(path, pattern):
f.truncate()
for l in file_content:
print >>f, l
if __name__ == "__main__":
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)
repos = sys.argv[1:]
if not len(repos):
- repos = [os.getcwd()]
+ repos = [os.path.dirname(sys.argv[0])]
for repo in repos:
resolve_deps(repo)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld