From: Alexander Popov Date: Thu, 26 Mar 2020 12:45:24 +0000 (+0300) Subject: Add a wrapper for using the tool without installation via setuptools X-Git-Tag: v0.5.7~49 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=3c0782768d124219f5fd1f932e1d4620965ced6e;p=kconfig-hardened-check.git Add a wrapper for using the tool without installation via setuptools --- diff --git a/bin/kconfig-hardened-check b/bin/kconfig-hardened-check new file mode 100755 index 0000000..beab71d --- /dev/null +++ b/bin/kconfig-hardened-check @@ -0,0 +1,16 @@ +#!/usr/bin/python3 + +# For using the tool without installation via setuptools + +import os +import sys +import inspect + +current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) +parent_dir = os.path.dirname(current_dir) +sys.path.insert(0, parent_dir) + +import kconfig_hardened_check + +if __name__ == "__main__": + kconfig_hardened_check.main()