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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « slave/run_slave.bat ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """ Initialize the environment variables and start the buildbot slave. 6 """ Initialize the environment variables and start the buildbot slave.
7 """ 7 """
8 8
9 import os 9 import os
10 import subprocess 10 import subprocess
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 slave_path = [depot_tools, '/usr/bin', '/bin', 156 slave_path = [depot_tools, '/usr/bin', '/bin',
157 '/usr/sbin', '/sbin', '/usr/local/bin'] 157 '/usr/sbin', '/sbin', '/usr/local/bin']
158 os.environ['PATH'] = os.pathsep.join(slave_path) 158 os.environ['PATH'] = os.pathsep.join(slave_path)
159 159
160 elif sys.platform == 'cygwin': 160 elif sys.platform == 'cygwin':
161 #TODO(maruel): Implement me. 161 #TODO(maruel): Implement me.
162 pass 162 pass
163 else: 163 else:
164 raise NotImplementedError('Unknown platform') 164 raise NotImplementedError('Unknown platform')
165 165
166 # Make sure the path is ok before loading buildbot and twisted.
167 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
168 sys.path.append(os.path.join('..', 'third_party', 'twisted_8_1'))
169
170 # Reboot the computer when the master tells the slave to terminate.
171 HotPatchSlaveBuilder()
172
166 # Run the slave. 173 # Run the slave.
167 HotPatchSlaveBuilder()
168 import twisted.scripts.twistd as twistd 174 import twisted.scripts.twistd as twistd
169 twistd.run() 175 twistd.run()
170 176
171 177
172 if '__main__' == __name__: 178 if '__main__' == __name__:
173 main() 179 main()
OLDNEW
« 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