OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import argparse | 5 import argparse |
6 import plistlib | 6 import plistlib |
7 import os | 7 import os |
8 import re | 8 import re |
9 import subprocess | 9 import subprocess |
10 import sys | 10 import sys |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 substitutions[key] = value | 198 substitutions[key] = value |
199 data = {} | 199 data = {} |
200 for filename in args.path: | 200 for filename in args.path: |
201 data = MergePList(data, LoadPList(filename)) | 201 data = MergePList(data, LoadPList(filename)) |
202 data = Interpolate(data, substitutions) | 202 data = Interpolate(data, substitutions) |
203 SavePList(args.output, data) | 203 SavePList(args.output, data) |
204 return 0 | 204 return 0 |
205 | 205 |
206 if __name__ == '__main__': | 206 if __name__ == '__main__': |
207 sys.exit(main()) | 207 sys.exit(main()) |
OLD | NEW |