Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Unified Diff: recipes.py

Issue 2136203002: Fix bootstrap cwd (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
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: recipes.py
diff --git a/recipes.py b/recipes.py
index 76538112434b5984c09571a7226edac1c1428773..e71420e5d7307ac9d5dd5150456cccecbcdbc05e 100755
--- a/recipes.py
+++ b/recipes.py
@@ -391,8 +391,9 @@ def main():
os.environ['RECIPES_RUN_BOOTSTRAP'] = '1'
args = sys.argv
return subprocess.call(
- ['ENV/bin/python'] + original_sys_argv,
- cwd=os.path.dirname(os.path.realpath(__file__)))
+ [os.path.join(
+ os.path.dirname(os.path.realpath(__file__)), 'ENV/bin/python'),
+ os.path.join(ROOT_DIR, 'recipes.py')] + original_sys_argv[1:])
dnj (Google) 2016/07/11 20:57:06 Are all these forward slashes Windows-compatible?
dnj (Google) 2016/07/11 20:57:06 We already have this value as ROOT_DIR, don't we?
if args.verbose:
logging.getLogger().setLevel(logging.INFO)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698