blob: ed578ced1017a2047c4929b3267b4c1a052d2a74 [file] [log] [blame]
epogerb1442712014-06-05 10:30:37 -07001#!/usr/bin/python
2
3"""
4Copyright 2014 Google Inc.
5
6Use of this source code is governed by a BSD-style license that can be
7found in the LICENSE file.
8
9Adds [trunk]/gm and [trunk]/tools to PYTHONPATH, if they aren't already there.
10"""
11
12import os
13import sys
14
15TRUNK_DIRECTORY = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
16GM_DIRECTORY = os.path.join(TRUNK_DIRECTORY, 'gm')
17TOOLS_DIRECTORY = os.path.join(TRUNK_DIRECTORY, 'tools')
18if GM_DIRECTORY not in sys.path:
19 sys.path.append(GM_DIRECTORY)
20if TOOLS_DIRECTORY not in sys.path:
21 sys.path.append(TOOLS_DIRECTORY)