OLD | NEW |
---|---|
(Empty) | |
1 #!/usr/bin/python | |
borenet
2014/06/04 15:04:52
I think the name is a little misleading, since it
epoger
2014/06/04 15:20:59
Done in patchset 7.
| |
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 [trunk]/gm to PYTHONPATH, if it isn't already there. | |
10 """ | |
11 | |
12 import os | |
13 import sys | |
14 | |
15 TRUNK_DIRECTORY = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) | |
16 GM_DIRECTORY = os.path.join(TRUNK_DIRECTORY, 'gm') | |
17 if GM_DIRECTORY not in sys.path: | |
18 sys.path.append(GM_DIRECTORY) | |
OLD | NEW |