From 270d8b468a6461b64fd3f98237ba08378a4cb33a Mon Sep 17 00:00:00 2001 From: Roland Dobai Date: Tue, 19 May 2020 16:43:29 +0200 Subject: [PATCH] tools: Don't generate pyc files --- tools/idf.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/idf.py b/tools/idf.py index 5e7180771..0c295feff 100755 --- a/tools/idf.py +++ b/tools/idf.py @@ -37,8 +37,12 @@ from collections import Counter, OrderedDict from importlib import import_module from pkgutil import iter_modules -from idf_py_actions.errors import FatalError -from idf_py_actions.tools import (executable_exists, idf_version, merge_action_lists, realpath) +# pyc files remain in the filesystem when switching between branches which might raise errors for incompatible +# idf.py extentions. Therefore, pyc file generation is turned off: +sys.dont_write_bytecode = True + +from idf_py_actions.errors import FatalError # noqa: E402 +from idf_py_actions.tools import (executable_exists, idf_version, merge_action_lists, realpath) # noqa: E402 # Use this Python interpreter for any subprocesses we launch PYTHON = sys.executable