Module: check_mk
Branch: master
Commit: 74c8f50fe4b18306eab9b86cf6f78bf6986d7656
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=74c8f50fe4b183…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 7 12:41:15 2018 +0100
tests/static/run_mypy: Add repo path to make mypy find "cmk" module
Change-Id: Idd21e6ddace20de40f19800f6332c6c69bc4d048
---
tests/static/run_mypy | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/static/run_mypy b/tests/static/run_mypy
index 0ffe729..ec92a5f 100755
--- a/tests/static/run_mypy
+++ b/tests/static/run_mypy
@@ -1,4 +1,4 @@
#! /bin/sh
# mypy_path in mypy.ini doesn't support relative paths, so we need this wrapper...
:-/
-cd `dirname $0`
-MYPYPATH=`realpath typeshed` exec ./.venv/bin/mypy "$@"
+cd $(dirname $0)
+MYPYPATH=$(realpath ../..):$(realpath typeshed) exec ./.venv/bin/mypy "$@"