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

Side by Side Diff: recipe_modules/json/examples/full.resources/cool_script.py

Issue 2909983003: [loader] Make recipe engine support examples/ module subdir (Closed)
Patch Set: Created 3 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
« no previous file with comments | « recipe_modules/json/examples/full.expected/basic.json ('k') | recipe_modules/path/api.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/env python 1 #!/usr/bin/env python
2 # Copyright 2017 The Chromium Authors. All rights reserved. 2 # Copyright 2017 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 sys 6 import sys
7 7
8 def main(argv): 8 def main(argv):
9 with open(argv[2], 'w') as f: 9 with open(argv[2], 'w') as f:
10 f.write(argv[1]) 10 f.write(argv[1])
11 return 0 11 return 0
12 12
13 if __name__ == '__main__': 13 if __name__ == '__main__':
14 sys.exit(main(sys.argv)) 14 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « recipe_modules/json/examples/full.expected/basic.json ('k') | recipe_modules/path/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698