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 [trunk]/gm and [trunk]/tools to PYTHONPATH, if they aren't already there.
15 TRUNK_DIRECTORY = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
16 GM_DIRECTORY = os.path.join(TRUNK_DIRECTORY, 'gm')
17 TOOLS_DIRECTORY = os.path.join(TRUNK_DIRECTORY, 'tools')
18 if GM_DIRECTORY not in sys.path:
19 sys.path.append(GM_DIRECTORY)
20 if TOOLS_DIRECTORY not in sys.path:
21 sys.path.append(TOOLS_DIRECTORY)