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

Side by Side Diff: httpd.py

Issue 12412021: Don't hardcode Python path (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src/
Patch Set: Created 7 years, 9 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 | « experimental/quake/httpd.py ('k') | libraries/nacl-mounts/AppEngine/AppEngineMount.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 #!/usr/bin/python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 3 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 7
8 """A tiny web server. 8 """A tiny web server.
9 9
10 This is intended to be used for testing. 10 This is intended to be used for testing.
11 """ 11 """
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 166
167 if __name__ == '__main__': 167 if __name__ == '__main__':
168 os.chdir('out') 168 os.chdir('out')
169 SanityCheckDirectory() 169 SanityCheckDirectory()
170 if len(sys.argv) > 1: 170 if len(sys.argv) > 1:
171 Run((SERVER_HOST, int(sys.argv[1]))) 171 Run((SERVER_HOST, int(sys.argv[1])))
172 else: 172 else:
173 Run((SERVER_HOST, SERVER_PORT)) 173 Run((SERVER_HOST, SERVER_PORT))
174 sys.exit(0) 174 sys.exit(0)
OLDNEW
« no previous file with comments | « experimental/quake/httpd.py ('k') | libraries/nacl-mounts/AppEngine/AppEngineMount.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698