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

Side by Side Diff: tools/tests/fix_pythonpath.py

Issue 796813004: Remove tools/tests. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 #!/usr/bin/python
2
3 """
4 Copyright 2014 Google Inc.
5
6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file.
8
9 Adds possibly-needed directories to PYTHONPATH, if they aren't already there.
10 """
11
12 import os
13 import sys
14
15 TRUNK_DIRECTORY = os.path.abspath(os.path.join(
16 os.path.dirname(__file__), os.pardir, os.pardir))
17 for subdir in ['tools']:
18 fullpath = os.path.join(TRUNK_DIRECTORY, subdir)
19 if fullpath not in sys.path:
20 sys.path.append(fullpath)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698