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

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

Issue 10837002: Extension docs server: add sys.executable to start_dev_server so that it works better on Windows (w… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | 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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 import os 6 import os
7 import signal 7 import signal
8 import shutil 8 import shutil
9 import subprocess 9 import subprocess
10 import sys 10 import sys
(...skipping 12 matching lines...) Expand all
23 if len(sys.argv) < 2: 23 if len(sys.argv) < 2:
24 print 'usage: start_dev_server.py <location of dev_appserver.py> [options]' 24 print 'usage: start_dev_server.py <location of dev_appserver.py> [options]'
25 exit(0) 25 exit(0)
26 26
27 signal.signal(signal.SIGINT, CleanUp) 27 signal.signal(signal.SIGINT, CleanUp)
28 28
29 build_server.main() 29 build_server.main()
30 for filename in FILENAMES: 30 for filename in FILENAMES:
31 shutil.copy(os.path.join(SERVER_PATH, filename), 31 shutil.copy(os.path.join(SERVER_PATH, filename),
32 os.path.join(SRC_PATH, filename)) 32 os.path.join(SRC_PATH, filename))
33 args = sys.argv[1:] 33 args = [sys.executable] + sys.argv[1:] + [SRC_PATH]
34 args.append(SRC_PATH)
35 subprocess.call(args) 34 subprocess.call(args)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698