Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: gm/rebaseline_server/import_gm.py

Issue 310093003: rebaseline_server: download actual-results.json files from GCS instead of SVN (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: move gs_utils.py and url_utils.py into tools/pyutils Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/rebaseline_server/download_actuals_test.py ('k') | gm/rebaseline_server/import_tools.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « gm/rebaseline_server/download_actuals_test.py ('k') | gm/rebaseline_server/import_tools.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698