Module: check_mk
Branch: master
Commit: 905c1b2621b427e358f6505bd2cc18b9d02d348a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=905c1b2621b427…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Dec 18 12:04:58 2014 +0100
Fixed call of check_mk.py from git dir
---
modules/check_mk.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index a18450a..85d446b 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -143,6 +143,8 @@ rrd_path = None # used by prediction.py
if len(sys.argv) >= 2 and sys.argv[1] == '--defaults':
defaults_path = sys.argv[2]
del sys.argv[1:3]
+else:
+ defaults_path = os.path.dirname(sys.argv[0]) + "/defaults"
try:
execfile(defaults_path)