run_checks: Add PWD to os.path.

Without this change, running checkers when not running unittests failed,
because qutebrowser couldn't be imported.
This commit is contained in:
Florian Bruhin 2014-08-20 07:14:12 +02:00
parent 7d219a2529
commit 7f6b44e4b0

View File

@ -46,6 +46,10 @@ import colorama as col
import pep257 import pep257
from pkg_resources import load_entry_point, DistributionNotFound from pkg_resources import load_entry_point, DistributionNotFound
sys.path.insert(0, os.getcwd())
# We need to do this because pyroma is braindead enough to use logging instead # We need to do this because pyroma is braindead enough to use logging instead
# of print... # of print...
logging.basicConfig(level=logging.INFO, format='%(msg)s') logging.basicConfig(level=logging.INFO, format='%(msg)s')