From 7f6b44e4b0fc025b5cdc2e8a282f0a4a2e882b4b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 20 Aug 2014 07:14:12 +0200 Subject: [PATCH] run_checks: Add PWD to os.path. Without this change, running checkers when not running unittests failed, because qutebrowser couldn't be imported. --- scripts/run_checks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/run_checks.py b/scripts/run_checks.py index 264d43d1a..af19a8479 100755 --- a/scripts/run_checks.py +++ b/scripts/run_checks.py @@ -46,6 +46,10 @@ import colorama as col import pep257 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 # of print... logging.basicConfig(level=logging.INFO, format='%(msg)s')