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

Side by Side Diff: chrome/common/extensions/docs/server2/start_dev_server.py

Issue 10500004: Die build.py, Die: Part 2 (LocalFetcher, Handlebar support, build script) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Changes and comments Created 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import os
7 import signal
8 import shutil
9 import subprocess
10 import sys
11
12 import build_server
13
14 SERVER_PATH = sys.path[0]
15 SRC_PATH = os.path.join(SERVER_PATH, '..', '..', '..', '..', '..')
not at google - send to devlin 2012/06/04 04:37:08 pardir?
cduvall 2012/06/04 21:53:25 Done.
16 FILENAMES = ['app.yaml', 'echo_handler.py']
17
18 def CleanUp(signal, frame):
19 for filename in FILENAMES:
20 os.remove(os.path.join(SRC_PATH, filename))
21
22 if len(sys.argv) < 2:
23 print 'usage: start_dev_server.py <location of dev_appserver.py> [options]'
24 exit(0)
25
26 signal.signal(signal.SIGINT, CleanUp)
27
28 build_server.main()
not at google - send to devlin 2012/06/04 04:37:08 This means that starting the dev server involves c
Aaron Boodman 2012/06/04 06:29:09 There are going to be non-Python dependencies, lik
29 for filename in FILENAMES:
30 shutil.copy(os.path.join(SERVER_PATH, filename),
31 os.path.join(SRC_PATH, filename))
32 args = sys.argv[1:]
33 args.append(SRC_PATH)
34 subprocess.call(args)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698