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

Side by Side Diff: tools/fix_pythonpath.py

Issue 330423004: Use new common tools in Python scripts (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments Created 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6
7 """Add commonly-used directories to PYTHONPATH."""
rmistry 2014/06/25 13:56:22 The problem with this module determining which dir
borenet 2014/06/25 14:53:32 I think the last idea sounds best to me: automatic
8
9
10 import os
11 import sys
12
13
14 CHECKOUT_ROOT = os.path.realpath(os.path.join(
15 os.path.dirname(os.path.abspath(__file__)), os.pardir))
16 sys.path.insert(0, CHECKOUT_ROOT)
17
18
19 if __name__ == '__main__':
20 print 'PYTHONPATH=%s' % ':'.join(sys.path)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698