blob: cc32f4a6bcf3fa075ac3534a85e06c60ca4347ad [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
epoger133931f2014-07-11 08:52:35 -07009Adds possibly-needed directories to PYTHONPATH, if they aren't already there.
epogerb1442712014-06-05 10:30:37 -070010"""
11
12import os
13import sys
14
epoger133931f2014-07-11 08:52:35 -070015TRUNK_DIRECTORY = os.path.abspath(os.path.join(
16 os.path.dirname(__file__), os.pardir, os.pardir))
17for subdir in ['common', 'gm', 'tools']:
18 fullpath = os.path.join(TRUNK_DIRECTORY, subdir)
19 if fullpath not in sys.path:
20 sys.path.append(fullpath)