| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 # This script is used to copy all dependencies into the local directory. | 6 # This script is used to copy all dependencies into the local directory. |
| 7 # The package of files can then be uploaded to App Engine. | 7 # The package of files can then be uploaded to App Engine. |
| 8 import os | 8 import os |
| 9 import shutil | 9 import shutil |
| 10 import stat | 10 import stat |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 'json_schema_compiler', | 68 'json_schema_compiler', |
| 69 SCHEMA_COMPILER_FILES) | 69 SCHEMA_COMPILER_FILES) |
| 70 CopyThirdParty(os.path.join(TOOLS_DIR, 'json_comment_eater'), | 70 CopyThirdParty(os.path.join(TOOLS_DIR, 'json_comment_eater'), |
| 71 'json_schema_compiler', | 71 'json_schema_compiler', |
| 72 ['json_comment_eater.py']) | 72 ['json_comment_eater.py']) |
| 73 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'simplejson'), | 73 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'simplejson'), |
| 74 os.path.join('json_schema_compiler', 'simplejson'), | 74 os.path.join('json_schema_compiler', 'simplejson'), |
| 75 make_init=False) | 75 make_init=False) |
| 76 MakeInit(LOCAL_THIRD_PARTY_DIR) | 76 MakeInit(LOCAL_THIRD_PARTY_DIR) |
| 77 | 77 |
| 78 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'google_appengine_cloudstorage', |
| 79 'cloudstorage'), 'cloudstorage') |
| 80 |
| 78 # To be able to use the Handlebar class we need this import in __init__.py. | 81 # To be able to use the Handlebar class we need this import in __init__.py. |
| 79 with open(os.path.join(LOCAL_THIRD_PARTY_DIR, | 82 with open(os.path.join(LOCAL_THIRD_PARTY_DIR, |
| 80 'handlebar', | 83 'handlebar', |
| 81 '__init__.py'), 'a') as f: | 84 '__init__.py'), 'a') as f: |
| 82 f.write('from handlebar import Handlebar\n') | 85 f.write('from handlebar import Handlebar\n') |
| 83 | 86 |
| 84 if __name__ == '__main__': | 87 if __name__ == '__main__': |
| 85 main() | 88 main() |
| OLD | NEW |