From 3c0782768d124219f5fd1f932e1d4620965ced6e Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Thu, 26 Mar 2020 15:45:24 +0300 Subject: [PATCH] Add a wrapper for using the tool without installation via setuptools --- bin/kconfig-hardened-check | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/kconfig-hardened-check 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() -- 2.31.1