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

Unified Diff: presubmit_canned_checks.py

Issue 160626: Use input_api.os_path.pathsep instead of ';' to join a list of paths.... (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Created 11 years, 4 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: presubmit_canned_checks.py
===================================================================
--- presubmit_canned_checks.py (revision 22355)
+++ presubmit_canned_checks.py (working copy)
@@ -284,10 +284,10 @@
cwd = input_api.os_path.dirname(unit_test)
unit_test = input_api.os_path.basename(unit_test)
env = input_api.environ.copy()
- backpath = [';'.join(['..'] * (cwd.count('/') + 1))]
+ backpath = [input_api.os_path.pathsep.join(['..'] * (cwd.count('/') + 1))]
if env.get('PYTHONPATH'):
backpath.append(env.get('PYTHONPATH'))
- env['PYTHONPATH'] = ';'.join((backpath))
+ env['PYTHONPATH'] = input_api.os_path.pathsep.join((backpath))
subproc = input_api.subprocess.Popen(
[
input_api.python_executable,
« 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