Add apexlake package path
[yardstick.git] / yardstick / __init__.py
1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 import logging
11 import logging.config
12
13 logging.basicConfig(
14     level=logging.WARNING,
15     format='[%(asctime)s] %(name)-20s %(filename)s:%(lineno)d '
16         '%(levelname)s %(message)s',  # noqa
17     datefmt='%m/%d/%y %H:%M:%S')
18 logging.getLogger(__name__).setLevel(logging.INFO)
19
20 # Hack to be able to run apexlake unit tests
21 # without having to install apexlake.
22 import sys
23 import os
24 import yardstick.vTC.apexlake as apexlake
25 sys.path.append(os.path.dirname(apexlake.__file__))