• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/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)
22