summaryrefslogtreecommitdiffstats
path: root/tests/_bootstrap.py
blob: 5a4e3b21735e023487140bb57a8a917462f16535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- coding: UTF-8 -*-
# Copyright 2012 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 redhat 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__)))