Index: leahi_dialin/common/__init__.py =================================================================== diff -u -r20c821bd230fc7689a0275a2918981669ff5cc19 -re45b20cdc5d4c5dcff8cef530b173ca94cb2e422 --- leahi_dialin/common/__init__.py (.../__init__.py) (revision 20c821bd230fc7689a0275a2918981669ff5cc19) +++ leahi_dialin/common/__init__.py (.../__init__.py) (revision e45b20cdc5d4c5dcff8cef530b173ca94cb2e422) @@ -3,12 +3,13 @@ # mandatory import from .msg_defs import * +from .msg_ids import * file_name = "config.json" sw_key = "SW" config = {} ok: bool = False -module_name = os.path.basename(os.path.dirname(__file__)) +module_name = os.path.basename(os.getcwd()) try: with open(file_name, 'r') as file: config = json.load(file); ok = config[sw_key] @@ -17,7 +18,7 @@ except Exception as e : print(f"Error ({module_name}): An unexpected error occurred: {e}" ) if ok: - print(f"{sw_key} is set to bypass the auto imports in '{module_name}' module.") + print(f"{sw_key} is set to bypass the auto imports.") else: from .alarm_defs import * from .alarm_priorities import *