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

Side by Side Diff: buildutil.py

Issue 3708004: Move dev server to use cherrypy. (Closed) Base URL: http://git.chromium.org/git/dev-util.git
Patch Set: last Created 10 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « autoupdate_unittest.py ('k') | devserver.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import os
6 import web
7 from datetime import datetime
8 import time
9
10 class BuildObject(object): 5 class BuildObject(object):
11 """ 6 """
12 Common base class that defines key paths in the source tree. 7 Common base class that defines key paths in the source tree.
13 """ 8 """
14 def __init__(self, root_dir, static_dir): 9 def __init__(self, root_dir, static_dir):
15 self.app_id = "87efface-864d-49a5-9bb3-4b050a7c227a" 10 self.app_id = "87efface-864d-49a5-9bb3-4b050a7c227a"
16 self.root_dir = root_dir 11 self.root_dir = root_dir
17 self.scripts_dir = "%s/scripts" % self.root_dir 12 self.scripts_dir = "%s/scripts" % self.root_dir
18 self.static_dir = static_dir 13 self.static_dir = static_dir
19 self.x86_pkg_dir = "%s/build/x86/local_packages" % self.root_dir 14 self.x86_pkg_dir = "%s/build/x86/local_packages" % self.root_dir
20 15
21 def AssertSystemCallSuccess(self, err, cmd="unknown"): 16 def AssertSystemCallSuccess(self, err, cmd="unknown"):
22 """ 17 """
23 TODO(rtc): This code should probably live somewhere else. 18 TODO(rtc): This code should probably live somewhere else.
24 """ 19 """
25 if err != 0: 20 if err != 0:
26 raise Exception("%s failed to execute" % cmd) 21 raise Exception("%s failed to execute" % cmd)
OLDNEW
« no previous file with comments | « autoupdate_unittest.py ('k') | devserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698