From 05b96d42e9574db6472187b49b5a983d977733c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 30 Dec 2019 09:13:04 +0100 Subject: [PATCH] addons; import cppcheckdata from local folder --- addons/cert.py | 2 +- addons/findcasts.py | 2 +- addons/misra.py | 2 +- addons/naming.py | 2 +- addons/namingng.py | 2 +- addons/threadsafety.py | 2 +- addons/y2038.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/addons/cert.py b/addons/cert.py index e974a4f51..01762db54 100755 --- a/addons/cert.py +++ b/addons/cert.py @@ -10,7 +10,7 @@ # python cert.py main.cpp.dump import argparse -import cppcheckdata +from . import cppcheckdata import sys import re diff --git a/addons/findcasts.py b/addons/findcasts.py index 958720607..9da55151a 100755 --- a/addons/findcasts.py +++ b/addons/findcasts.py @@ -3,7 +3,7 @@ # Locate casts in the code # -import cppcheckdata +from . import cppcheckdata import sys for arg in sys.argv[1:]: diff --git a/addons/misra.py b/addons/misra.py index 9dc2962da..6b919b8b6 100755 --- a/addons/misra.py +++ b/addons/misra.py @@ -15,7 +15,7 @@ from __future__ import print_function -import cppcheckdata +from . import cppcheckdata import itertools import sys import re diff --git a/addons/naming.py b/addons/naming.py index 8da36d7cd..910aea86f 100755 --- a/addons/naming.py +++ b/addons/naming.py @@ -7,7 +7,7 @@ # $ python addons/naming.py --var='[a-z].*' --function='[A-Z].*' path-to-src/*.dump # -import cppcheckdata +from . import cppcheckdata import sys import re diff --git a/addons/namingng.py b/addons/namingng.py index 9d78c4dab..11ab7ca72 100755 --- a/addons/namingng.py +++ b/addons/namingng.py @@ -22,7 +22,7 @@ # RE_VARNAME, RE_PRIVATE_MEMBER_VARIABLE and RE_FUNCTIONNAME are regular expressions to cover the basic names # In var_prefixes and function_prefixes there are the variable-type/prefix pairs -import cppcheckdata +from . import cppcheckdata import sys import re import argparse diff --git a/addons/threadsafety.py b/addons/threadsafety.py index 6c4ec7e90..0e6ddf972 100755 --- a/addons/threadsafety.py +++ b/addons/threadsafety.py @@ -4,7 +4,7 @@ # - warn about static local objects # -import cppcheckdata +from . import cppcheckdata import sys def reportError(token, severity, msg, id): diff --git a/addons/y2038.py b/addons/y2038.py index 2fffd07a2..ee1427e39 100755 --- a/addons/y2038.py +++ b/addons/y2038.py @@ -15,7 +15,7 @@ # y2038.py will walk the source tree for .dump files. from __future__ import print_function -import cppcheckdata +from . import cppcheckdata import sys import os import re