From 2b82ad0d4f5a34801b75bfd5e533fee9d0d072f8 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Mon, 6 Feb 2023 11:46:04 +0100 Subject: [PATCH] Fixing directories without NEED --- scripts/module/module_handler.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/module/module_handler.py b/scripts/module/module_handler.py index 6dd74f34..fbdee171 100755 --- a/scripts/module/module_handler.py +++ b/scripts/module/module_handler.py @@ -213,6 +213,14 @@ if __name__ == '__main__': if arguments['--all']: l_module = [f for f in os.listdir(QP_SRC) if os.path.isdir(os.path.join(QP_SRC, f))] + l_non_module = [f for f in l_module if not is_module(f) ] + if l_non_module: + print("Ignoring invalid modules:") + print(" ".join(l_non_module)) + + # Filter out all non-modules + l_module = [f for f in l_module if is_module(f) ] + # Remove all produced ezfio_config files for filename in os.listdir( os.path.join(QP_EZFIO, "config") ): os.remove( os.path.join(QP_EZFIO, "config", filename) )