blob: b3ea70320964a540076811cf1ca4bec44cef7002 [file] [log] [blame]
Mads Ager418d1ca2017-05-22 09:35:49 +02001# Copyright (c) 2016, the R8 project authors. Please see the AUTHORS file
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.
4
5import imp
6import os
7
8TOOLS_DIR = os.path.abspath(
9 os.path.normpath(os.path.join(__file__, '..', '..')))
10
11def GetUtils():
12 '''Dynamically load the tools/utils.py python module.'''
13 return imp.load_source('utils', os.path.join(TOOLS_DIR, 'utils.py'))