| OLD | NEW |
| 1 # Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2008-2009 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 """This is the Linux implementation of the layout_package.platform_utils | 5 """This is the Linux implementation of the layout_package.platform_utils |
| 6 package. This file should only be imported by that package.""" | 6 package. This file should only be imported by that package.""" |
| 7 | 7 |
| 8 import os | 8 import os |
| 9 import signal | 9 import signal |
| 10 import subprocess | 10 import subprocess |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 214 |
| 215 def _PathFromBuildResults(*pathies): | 215 def _PathFromBuildResults(*pathies): |
| 216 # FIXME(dkegel): use latest or warn if more than one found? | 216 # FIXME(dkegel): use latest or warn if more than one found? |
| 217 for dir in ["sconsbuild", "out", "xcodebuild"]: | 217 for dir in ["sconsbuild", "out", "xcodebuild"]: |
| 218 try: | 218 try: |
| 219 return path_utils.PathFromBase(dir, *pathies) | 219 return path_utils.PathFromBase(dir, *pathies) |
| 220 except: | 220 except: |
| 221 pass | 221 pass |
| 222 raise path_utils.PathNotFound("Unable to find %s in build tree" % | 222 raise path_utils.PathNotFound("Unable to find %s in build tree" % |
| 223 (os.path.join(*pathies))) | 223 (os.path.join(*pathies))) |
| OLD | NEW |