OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 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 """Moves Apprtc to the out/ directory, where the browser test can find it.""" | 6 """Moves Apprtc to the out/ directory, where the browser test can find it.""" |
7 | 7 |
8 import fileinput | 8 import fileinput |
9 import os | 9 import os |
10 import shutil | 10 import shutil |
(...skipping 28 matching lines...) Expand all Loading... |
39 else: | 39 else: |
40 utils.RemoveDirectory(path) | 40 utils.RemoveDirectory(path) |
41 | 41 |
42 | 42 |
43 def main(): | 43 def main(): |
44 target_dir = os.path.join('src', 'out', 'apprtc') | 44 target_dir = os.path.join('src', 'out', 'apprtc') |
45 RemoveDirectory(target_dir) | 45 RemoveDirectory(target_dir) |
46 shutil.copytree('apprtc', | 46 shutil.copytree('apprtc', |
47 target_dir, ignore=shutil.ignore_patterns('.svn', '.git')) | 47 target_dir, ignore=shutil.ignore_patterns('.svn', '.git')) |
48 | 48 |
49 app_yaml_path = os.path.join(target_dir, 'src', 'app_engine', 'app.yaml') | 49 app_yaml_path = os.path.join(target_dir, 'out', 'app_engine', 'app.yaml') |
50 _ConfigureApprtcServerToDeveloperMode(app_yaml_path) | 50 _ConfigureApprtcServerToDeveloperMode(app_yaml_path) |
51 | 51 |
52 | 52 |
53 if __name__ == '__main__': | 53 if __name__ == '__main__': |
54 sys.exit(main()) | 54 sys.exit(main()) |
55 | 55 |
OLD | NEW |