Module: check_mk
Branch: master
Commit: 713a04c9c1e8a1ce0135391bfcdb837a6c88e4b5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=713a04c9c1e8a1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Apr 27 07:40:07 2016 +0200
pylint can now be called from cmk git base directory manually too
---
agents/plugins/mk_tinkerforge | 2 ++
pylint/pylintrc | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/agents/plugins/mk_tinkerforge b/agents/plugins/mk_tinkerforge
index 8bfbd1c..7eb8a17 100755
--- a/agents/plugins/mk_tinkerforge
+++ b/agents/plugins/mk_tinkerforge
@@ -60,6 +60,8 @@
# Currently the bricklets included in the Starter Kit: Server Room Monitoring are
# implemented
+# Don't have tinkerforge module during tests. So disable those checks
+# pylint: disable=import-error
import sys
import os
diff --git a/pylint/pylintrc b/pylint/pylintrc
index ba825cf..63f9a2b 100644
--- a/pylint/pylintrc
+++ b/pylint/pylintrc
@@ -1,6 +1,6 @@
[MASTER]
# Use the OMD default version lib dir to add the mod_python modules
-init-hook='import sys; sys.path.insert(0,
os.environ.get("PYLINT_PATH"))'
+init-hook='import sys; sys.path = [ ".",
os.environ.get("PYLINT_PATH", "pylint") ] + sys.path'
load-plugins=pylint_cmk
persistent=yes
# We only want to see errors for the moment. Disable this one day. But prepare to cleanup
a lot of stuff.