Index: leahi_dialin/utils/__init__.py =================================================================== diff -u -r126c206228086fbd13e820980c2fbb2fb58131bb -rbe6aa30cfb37a47935f3c114ecece9ee75809909 --- leahi_dialin/utils/__init__.py (.../__init__.py) (revision 126c206228086fbd13e820980c2fbb2fb58131bb) +++ leahi_dialin/utils/__init__.py (.../__init__.py) (revision be6aa30cfb37a47935f3c114ecece9ee75809909) @@ -9,7 +9,7 @@ sw_key = "SW" config = {} ok: bool = False -module_name = os.path.basename(os.getcwd()) +module_name = os.path.basename(os.path.dirname(__file__)) try: with open(file_name, 'r') as file: config = json.load(file); ok = config[sw_key] @@ -18,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.") + print(f"{sw_key} is set to bypass the auto imports in '{module_name}' module.") else: from .conversions import * from .data_logger import DataLogger