## Import My Utility Modules - 2022 # Superb Examples... 1. URL: https://blog.finxter.com/python-how-to-import-modules-from-another-folder/ # Python # from Utility_Modules import Error_Handling as Err_Hand # Example #1 - custom_except_1() Function Summery: - This will print a minimal Traceback to the line where everything went wrong. - Extra Custom Info Printed... - Error Location - Name of the Function, which called this function. except Exception: # noqa Err_Hand.custom_except_1('Main.py', 'find_flac_files()') ------------------------------------------------------------------------------------- # from Utility_Modules import All_Timers as My_CD_Timers # Example #2 - custom_except_2() Function Summery: - This will print a minimal Traceback to the line where everything went wrong. - Used for parts the code dealing with a Dictionary - Where a known Key Error could take place except Exception: # noqa My_CD_Timers.any_countdownTimer(3) ------------------------------------------------------------------------------------- # Method 3: Dot Notation ------------------------ Folder Setup (Example) application ├── app │ └── folder │ └── file_1.py └── app2 └── some_folder └── file_2.py # file_2.py # Import from application.app.folder.file_1 import func_name