# This file is not installed; it's just to run annotations from inside a source
# distribution without installing it in the system.
-import os
-from kconfig import run
+import sys
+
+# Prevent generating .pyc files on import
+#
+# We may end up adding these files to our git repos by mistake, so simply
+# prevent generating them in advance.
+#
+# There's a tiny performance penalty with this, because python needs to
+# re-generate the bytecode on-the-fly every time the script is executed, but
+# this overhead is absolutely negligible compared the rest of the kernel build
+# time.
+sys.dont_write_bytecode = True
+
+import os # noqa: E402 Import not at top of file
+from kconfig import run # noqa: E402 Import not at top of file
# Update PATH to make sure that annotations can be executed directly from the
# Copyright © 2022 Canonical Ltd.
import sys
-
-sys.dont_write_bytecode = True
-
-import os # noqa: E402 Import not at top of file
-import argparse # noqa: E402 Import not at top of file
-import json # noqa: E402 Import not at top of file
-from signal import signal, SIGPIPE, SIG_DFL # noqa: E402 Import not at top of file
+import os
+import argparse
+import json
+from signal import signal, SIGPIPE, SIG_DFL
try:
from argcomplete import autocomplete