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.
Moved the bulk of the code (including the embedded functions from scan_logs() to a new class. The logtext, logpath, logname, and scanpath variables are now stored there.
There is a static method that is used to set up the instance of the class, it takes the file name and generates the path variables and reads the logtext, generates the loglines and returns a new class instance with this data as parameters.
I've also learned that writing triple-quote strings to a file, it will preserve new-lines, but it can look odd in the code files because it also preserves tabs and spaces, so the code formatting doesn't look "pythonic".
Moved the bulk of the code (including the embedded functions from scan_logs() to a new class. The logtext, logpath, logname, and scanpath variables are now stored there. There is a static method that is used to set up the instance of the class, it takes the file name and generates the path variables and reads the logtext, generates the loglines and returns a new class instance with this data as parameters. I've also learned that writing triple-quote strings to a file, it will preserve new-lines, but it can look odd in the code files because it also preserves tabs and spaces, so the code formatting doesn't look "pythonic".