Index: recipe_modules/json/example.resources/cool_script.py |
diff --git a/recipe_modules/json/example.resources/cool_script.py b/recipe_modules/json/example.resources/cool_script.py |
new file mode 100755 |
index 0000000000000000000000000000000000000000..3c71c7d2574b651a47665ce64f9f9ddcf4771de3 |
--- /dev/null |
+++ b/recipe_modules/json/example.resources/cool_script.py |
@@ -0,0 +1,14 @@ |
+#!/usr/bin/env python |
+# Copyright 2017 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+import sys |
+ |
+def main(argv): |
+ with open(argv[2], 'w') as f: |
+ f.write(argv[1]) |
+ return 0 |
+ |
+if __name__ == '__main__': |
+ sys.exit(main(sys.argv)) |