From 44c13d1cade7fa49d84aa60bc99f887301ef653c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Bron=C3=A8s?= <romain.brones@synchrotron-soleil.fr> Date: Tue, 6 Feb 2024 09:26:35 +0100 Subject: [PATCH] Move module wide variables --- ArchiveExtractor/Access.py | 10 ---------- ArchiveExtractor/__init__.py | 13 +++++++++++++ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/ArchiveExtractor/Access.py b/ArchiveExtractor/Access.py index ce376b4..3cf194d 100644 --- a/ArchiveExtractor/Access.py +++ b/ArchiveExtractor/Access.py @@ -20,16 +20,6 @@ if not logger.hasHandlers(): sh.setFormatter(logging.Formatter("%(levelname)s:%(message)s")) logger.addHandler(sh) - -########################################################################## -### Module private variables ### -########################################################################## -# Tuple of extractor for HDB and TDB -_extractors = (None, None) - -# Tuple for attribute tables -_AttrTables = (None, None) - ########################################################################## ### Module initialisation functions ### ########################################################################## diff --git a/ArchiveExtractor/__init__.py b/ArchiveExtractor/__init__.py index a8ea30b..75fcb96 100644 --- a/ArchiveExtractor/__init__.py +++ b/ArchiveExtractor/__init__.py @@ -5,3 +5,16 @@ Python module for extracting attribute from Archive Extractor Device. __version__ = "AUTOVERSIONREPLACE" __all__ = ["Access", ] + +########################################################################## +### Module private variables ### +########################################################################## +# Tuple of extractor for HDB and TDB +global _extractors +_extractors = (None, None) + +# Tuple for attribute tables +global _AttrTables +_AttrTables = (None, None) + + -- GitLab