4 Copyright 2014 Google Inc.
6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file.
9 Adds possibly-needed directories to PYTHONPATH, if they aren't already there.
15 TRUNK_DIRECTORY = os.path.abspath(os.path.join(
16 os.path.dirname(__file__), os.pardir, os.pardir))
17 for 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)