OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2009 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 """Docbuilder for extension docs.""" | 6 """Docbuilder for extension docs.""" |
7 | 7 |
8 import os | 8 import os |
9 import os.path | 9 import os.path |
10 import shutil | 10 import shutil |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 122 |
123 search_locations = [] | 123 search_locations = [] |
124 | 124 |
125 if (sys.platform in ('cygwin', 'win32')): | 125 if (sys.platform in ('cygwin', 'win32')): |
126 home_dir = os.path.normpath(os.getenv("HOMEDRIVE") + os.getenv("HOMEPATH")) | 126 home_dir = os.path.normpath(os.getenv("HOMEDRIVE") + os.getenv("HOMEPATH")) |
127 search_locations.append(chrome_dir + "/Release/DumpRenderTree.exe") | 127 search_locations.append(chrome_dir + "/Release/DumpRenderTree.exe") |
128 search_locations.append(chrome_dir + "/Debug/DumpRenderTree.exe") | 128 search_locations.append(chrome_dir + "/Debug/DumpRenderTree.exe") |
129 search_locations.append(home_dir + "/bin/DumpRenderTree/" | 129 search_locations.append(home_dir + "/bin/DumpRenderTree/" |
130 "DumpRenderTree.exe") | 130 "DumpRenderTree.exe") |
131 | 131 |
132 if (sys.platform in ('linux', 'linux2')): | 132 if (sys.platform.startswith('linux')): |
133 search_locations.append(src_dir + "/sconsbuild/Release/DumpRenderTree") | 133 search_locations.append(src_dir + "/sconsbuild/Release/DumpRenderTree") |
134 search_locations.append(src_dir + "/out/Release/DumpRenderTree") | 134 search_locations.append(src_dir + "/out/Release/DumpRenderTree") |
135 search_locations.append(src_dir + "/sconsbuild/Debug/DumpRenderTree") | 135 search_locations.append(src_dir + "/sconsbuild/Debug/DumpRenderTree") |
136 search_locations.append(src_dir + "/out/Debug/DumpRenderTree") | 136 search_locations.append(src_dir + "/out/Debug/DumpRenderTree") |
137 search_locations.append(os.getenv("HOME") + "/bin/DumpRenderTree/" | 137 search_locations.append(os.getenv("HOME") + "/bin/DumpRenderTree/" |
138 "DumpRenderTree") | 138 "DumpRenderTree") |
139 | 139 |
140 if (sys.platform == 'darwin'): | 140 if (sys.platform == 'darwin'): |
141 search_locations.append(src_dir + | 141 search_locations.append(src_dir + |
142 "/xcodebuild/Release/DumpRenderTree.app/Contents/MacOS/DumpRenderTree") | 142 "/xcodebuild/Release/DumpRenderTree.app/Contents/MacOS/DumpRenderTree") |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 if (os.path.isfile(debug_log)): | 235 if (os.path.isfile(debug_log)): |
236 os.remove(debug_log) | 236 os.remove(debug_log) |
237 | 237 |
238 if 'EX_OK' in dir(os): | 238 if 'EX_OK' in dir(os): |
239 return os.EX_OK | 239 return os.EX_OK |
240 else: | 240 else: |
241 return 0 | 241 return 0 |
242 | 242 |
243 if __name__ == '__main__': | 243 if __name__ == '__main__': |
244 sys.exit(main()) | 244 sys.exit(main()) |
OLD | NEW |