Index: leahi_dialin/protocols/__init__.py =================================================================== diff -u -r1f2bf6d939eb4033dbedb7d7005494cc12fccbc6 -re45b20cdc5d4c5dcff8cef530b173ca94cb2e422 --- leahi_dialin/protocols/__init__.py (.../__init__.py) (revision 1f2bf6d939eb4033dbedb7d7005494cc12fccbc6) +++ leahi_dialin/protocols/__init__.py (.../__init__.py) (revision e45b20cdc5d4c5dcff8cef530b173ca94cb2e422) @@ -5,7 +5,7 @@ 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] @@ -14,7 +14,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 .CAN import CanMessenger from .CAN import CanChannels