Chromium Code Reviews| Index: gm/rebaseline_server/import_gm.py |
| diff --git a/gm/rebaseline_server/import_gm.py b/gm/rebaseline_server/import_gm.py |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..da8f5d58019aeff41cff7ebe5006e291a0ea2154 |
| --- /dev/null |
| +++ b/gm/rebaseline_server/import_gm.py |
| @@ -0,0 +1,18 @@ |
| +#!/usr/bin/python |
|
borenet
2014/06/04 15:04:52
I think the name is a little misleading, since it
epoger
2014/06/04 15:20:59
Done in patchset 7.
|
| + |
| +""" |
| +Copyright 2014 Google Inc. |
| + |
| +Use of this source code is governed by a BSD-style license that can be |
| +found in the LICENSE file. |
| + |
| +Adds [trunk]/gm to PYTHONPATH, if it isn't already there. |
| +""" |
| + |
| +import os |
| +import sys |
| + |
| +TRUNK_DIRECTORY = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) |
| +GM_DIRECTORY = os.path.join(TRUNK_DIRECTORY, 'gm') |
| +if GM_DIRECTORY not in sys.path: |
| + sys.path.append(GM_DIRECTORY) |