| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 os | 5 import os |
| 6 | 6 |
| 7 # FIXME: All callers should use mopy/paths.py instead! | 7 # FIXME: All callers should use mopy/paths.py instead! |
| 8 class Paths(object): | 8 class Paths(object): |
| 9 def __init__(self, build_directory): | 9 def __init__(self, build_directory): |
| 10 self.src_root = os.path.abspath(os.path.join(__file__, | 10 self.src_root = os.path.abspath(os.path.join(__file__, |
| 11 os.pardir, os.pardir, os.pardir, os.pardir)) | 11 os.pardir, os.pardir, os.pardir, os.pardir)) |
| 12 self.sky_root = os.path.join(self.src_root, 'sky') | 12 self.sky_root = os.path.join(self.src_root, 'sky') |
| 13 self.gen_root = os.path.join(self.src_root, build_directory, 'gen') | 13 self.build_dir = os.path.join(self.src_root, build_directory) |
| 14 self.gen_root = os.path.join(self.build_dir, 'gen') |
| 14 self.sky_tools_directory = os.path.join(self.src_root, 'sky', 'tools') | 15 self.sky_tools_directory = os.path.join(self.src_root, 'sky', 'tools') |
| 15 self.mojo_shell_path = os.path.join(self.src_root, build_directory, 'moj
o_shell') | 16 self.mojo_shell_path = os.path.join(self.src_root, build_directory, 'moj
o_shell') |
| OLD | NEW |