Commit a301f1f3 authored by ukai@chromium.org's avatar ukai@chromium.org

Use input_api.os_path.pathsep instead of ';' to join a list of paths.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/160626

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22473 0039d316-1c4b-4281-b951-d872f2087c98
parent 2534063d
......@@ -284,10 +284,10 @@ def RunPythonUnitTests(input_api, output_api, unit_tests):
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,
......
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