Drop `if __name__ == "__main__"` from ./bin/kconfig-hardened-check
[kconfig-hardened-check.git] / bin / kconfig-hardened-check
1 #!/usr/bin/python3
2
3 # For using the tool without installation via setuptools
4
5 import os
6 import sys
7 import inspect
8
9 current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
10 parent_dir = os.path.dirname(current_dir)
11 sys.path.insert(0, parent_dir)
12
13 import kconfig_hardened_check
14
15 kconfig_hardened_check.main()