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

Unified Diff: slave/skia_slave_scripts/build_step.py

Issue 344183004: Use new common utils where possible. (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: rebase Created 6 years, 5 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
Index: slave/skia_slave_scripts/build_step.py
diff --git a/slave/skia_slave_scripts/build_step.py b/slave/skia_slave_scripts/build_step.py
index 81ba807e98a5fc14a29f66e6a0afcb6eb4268e5a..9a821de5b0b1112d13de5dbe897f959338377eb5 100644
--- a/slave/skia_slave_scripts/build_step.py
+++ b/slave/skia_slave_scripts/build_step.py
@@ -19,17 +19,23 @@ import traceback
from playback_dirs import LocalSkpPlaybackDirs
from playback_dirs import StorageSkpPlaybackDirs
-from utils import misc
+BUILDBOT_PATH = os.path.realpath(os.path.join(
+ os.path.dirname(os.path.abspath(__file__)), os.pardir, os.pardir))
# Add important directories to the PYTHONPATH
-sys.path.append(os.path.join(misc.BUILDBOT_PATH, 'site_config'))
-sys.path.append(os.path.join(misc.BUILDBOT_PATH, 'master'))
+sys.path.append(os.path.join(BUILDBOT_PATH))
+sys.path.append(os.path.join(BUILDBOT_PATH, 'site_config'))
+sys.path.append(os.path.join(BUILDBOT_PATH, 'master'))
+sys.path.insert(0, os.path.join(BUILDBOT_PATH, 'common'))
import builder_name_schema
import slave_hosts_cfg
import slaves_cfg
+from py.utils import misc
+
+
DEFAULT_TIMEOUT = 4800
DEFAULT_NO_OUTPUT_TIMEOUT = 3600
DEFAULT_NUM_CORES = 2
« no previous file with comments | « slave/skia_slave_scripts/apply_patch.py ('k') | slave/skia_slave_scripts/check_buildslave_host_disk_usage.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698