From 6fb793dd2a9ed5c5e84d3abe798cf40ec03941a7 Mon Sep 17 00:00:00 2001 From: Titusz Pan Date: Sat, 19 Oct 2024 18:44:53 +0200 Subject: [PATCH] Check for pyc extension in turbo function --- iscc_core/check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iscc_core/check.py b/iscc_core/check.py index f7f5242..7290028 100644 --- a/iscc_core/check.py +++ b/iscc_core/check.py @@ -16,6 +16,6 @@ def turbo(): # pragma: no cover for module in modules: module_file = inspect.getfile(module) log.debug(f"Module {module.__name__} file: {module_file}") - if module_file.endswith(".py"): + if module_file.endswith(".py") or module_file.endswith(".pyc"): return False return True