OLD | NEW |
1 # Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 # This file contains a set of utilities functions used by other Python-based | 5 # This file contains a set of utilities functions used by other Python-based |
6 # scripts. Most of these utilities are imported from tools/utils.py in the Dart | 6 # scripts. Most of these utilities are imported from tools/utils.py in the Dart |
7 # SDK. | 7 # SDK. |
8 | 8 |
9 import imp | 9 import imp |
10 import os | 10 import os |
11 | 11 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 # Replace DART_DIR to get the right cwd for git commands. | 48 # Replace DART_DIR to get the right cwd for git commands. |
49 dart_utils.DART_DIR = os.path.abspath(os.path.join(__file__, '..', '..', '..')) | 49 dart_utils.DART_DIR = os.path.abspath(os.path.join(__file__, '..', '..', '..')) |
50 | 50 |
51 # Use the version file in the fletch repo. | 51 # Use the version file in the fletch repo. |
52 dart_utils.VERSION_FILE = os.path.join(dart_utils.DART_DIR, 'tools', 'VERSION') | 52 dart_utils.VERSION_FILE = os.path.join(dart_utils.DART_DIR, 'tools', 'VERSION') |
53 | 53 |
54 # Now that we have patched 'dart_utils', import it into our own scope. This | 54 # Now that we have patched 'dart_utils', import it into our own scope. This |
55 # also means that we export everything from that library. | 55 # also means that we export everything from that library. |
56 from dart_utils import * | 56 from dart_utils import * |
OLD | NEW |