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

Unified Diff: slave/run_slave.py

Issue 4558002: Remove PYTHONPATH requirement to execute run_slave.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/slave
Patch Set: Created 10 years, 1 month 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 | « slave/run_slave.bat ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: slave/run_slave.py
diff --git a/slave/run_slave.py b/slave/run_slave.py
index 27c26e3ef8d46d5794c3e72a8b9118d0a35a3d81..1d1652eff09eb8037c137e218788e57effd2304e 100644
--- a/slave/run_slave.py
+++ b/slave/run_slave.py
@@ -163,8 +163,14 @@ def main():
else:
raise NotImplementedError('Unknown platform')
- # Run the slave.
+ # Make sure the path is ok before loading buildbot and twisted.
+ sys.path.append(os.path.join('..', 'third_party', 'buildbot_7_12'))
nsylvain 2010/11/05 01:24:00 The reason why it was in makefile is that we could
M-A Ruel 2010/11/05 01:51:58 My plan is to switch all the slaves to 0.8.2 but k
+ sys.path.append(os.path.join('..', 'third_party', 'twisted_8_1'))
+
+ # Reboot the computer when the master tells the slave to terminate.
HotPatchSlaveBuilder()
+
+ # Run the slave.
import twisted.scripts.twistd as twistd
twistd.run()
« no previous file with comments | « slave/run_slave.bat ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698