Index: leahi_dialin/common/__init__.py =================================================================== diff -u -rbe6aa30cfb37a47935f3c114ecece9ee75809909 -r78a66378ef0f284406cfcf12085a2c23e224ac05 --- leahi_dialin/common/__init__.py (.../__init__.py) (revision be6aa30cfb37a47935f3c114ecece9ee75809909) +++ leahi_dialin/common/__init__.py (.../__init__.py) (revision 78a66378ef0f284406cfcf12085a2c23e224ac05) @@ -8,7 +8,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] @@ -17,7 +17,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 *