blob: f4190040b8f795d691dd075677501eece040b5cd [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
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +02008TOOLS_DIR = os.path.abspath(os.path.normpath(os.path.join(__file__, '..',
9 '..')))
10
Mads Ager418d1ca2017-05-22 09:35:49 +020011
12def GetUtils():
Christoffer Quist Adamsen2434a4d2023-10-16 11:29:03 +020013 '''Dynamically load the tools/utils.py python module.'''
14 return imp.load_source('utils', os.path.join(TOOLS_DIR, 'utils.py'))