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

Side by Side Diff: libraries/nacl-mounts/http2/genfs.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 | « libraries/nacl-mounts/AppEngine/AppEngineMount.py ('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/env python
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client 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 # This scripts generates an HTTP2 file system from a set of files. 6 # This scripts generates an HTTP2 file system from a set of files.
7 # File description comes from a configuration file (the first command line 7 # File description comes from a configuration file (the first command line
8 # argument), which is a python script that defines the following variables: 8 # argument), which is a python script that defines the following variables:
9 # srcdir = "/path/to/the/input/directory" 9 # srcdir = "/path/to/the/input/directory"
10 # destdir = "/path/to/the/output/directory" 10 # destdir = "/path/to/the/output/directory"
11 # manifest = "prefix of the manifest file name (output)" 11 # manifest = "prefix of the manifest file name (output)"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 misc_files = list_pack_contents([['*', '*', '']]) 111 misc_files = list_pack_contents([['*', '*', '']])
112 for misc_file in misc_files: 112 for misc_file in misc_files:
113 manifest_data = build_pack([misc_file], destdir, misc_file) 113 manifest_data = build_pack([misc_file], destdir, misc_file)
114 fmanifest.write(manifest_data) 114 fmanifest.write(manifest_data)
115 115
116 fmanifest.close() 116 fmanifest.close()
117 117
118 # And the icing on the cake: pack the manifest itself 118 # And the icing on the cake: pack the manifest itself
119 build_pack([manifest_tmp], destdir, manifest) 119 build_pack([manifest_tmp], destdir, manifest)
120 os.unlink(manifest_tmp) 120 os.unlink(manifest_tmp)
OLDNEW
« no previous file with comments | « libraries/nacl-mounts/AppEngine/AppEngineMount.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698