summaryrefslogtreecommitdiffstats
path: root/tests/_bootstrap.py
blob: 8d321c0ba0397183f401a74a1d48d6565ced8cb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- coding: UTF-8 -*-
# Copyright 2013 Red Hat, Inc.
# Part of clufter project
# Licensed under GPLv2 (a copy included | http://gnu.org/licenses/gpl-2.0.txt)
"""Bootstrap the environment for testing"""
__author__ = "Jan Pokorný <jpokorny @at@ Red Hat .dot. com>"

import logging
logging.basicConfig(level=logging.DEBUG)

from sys import path
from os.path import dirname, abspath
path.insert(0, reduce(lambda x, y: dirname(x), xrange(3), abspath(__file__)))