Crash Log Auto-Scanner & Setup Integrity Checker for Fallout 4 / Buffout 4. Tool that extensively scans Fallout 4 game & mod files and Buffout 4 crash logs, then provides troubleshooting advice depending on what it finds.
I changed the location of the definition of the crash_template function to be outside the for loop and added an optional parameter so you can pass the TextIOWrapper (output in this case). Since the function is also used outside the for-loop, it made sense to me to move it outside of it.
I also changed the import section of scan_gamefiles and scan_interface to only import the functions that are used, this also removes the need to prefix the functions with Scan_Crashlogs.
I changed the location of the definition of the crash_template function to be outside the for loop and added an optional parameter so you can pass the TextIOWrapper (output in this case). Since the function is also used outside the for-loop, it made sense to me to move it outside of it. I also changed the import section of scan_gamefiles and scan_interface to only import the functions that are used, this also removes the need to prefix the functions with Scan_Crashlogs.