From 076b60472298ccfebd98bc6c3e9283d13162e0e6 Mon Sep 17 00:00:00 2001 From: Brian Read Date: Mon, 9 Dec 2024 17:26:50 +0000 Subject: [PATCH] Add in Filename logged for css file --- sm2gen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sm2gen.py b/sm2gen.py index 848ee28..e999c8f 100644 --- a/sm2gen.py +++ b/sm2gen.py @@ -834,11 +834,12 @@ if __name__ == "__main__": logger.info(f"Content modified and saved to {partial_files[i]}") i += 1 - # Create the css file (the header, followed by a dumy entry for each class created/used above) + # Create the css file (the header, followed by a dummy entry for each class created/used above) with open(css_file, "w") as file: file.write(f"/*\nGenerated by SM2Gen version: {strVersion}\n*/\n") file.write(f".{hl('PackageName')}-panel {{}}\n") file.write(acc_css_entries); + logger.info(f"Css generated and saved to {highlight_occurrences(css_file)}") # Now generate the .en file # Look through the generated files for the /l[\s|(]['|"](.*)['|"]\)/ strings. @@ -954,4 +955,4 @@ if __name__ == "__main__": # logger.info( # f"Skipping the creation of {translated_lex_file} as it exists already" # ) - quit() # end of the program \ No newline at end of file + quit() # end of the program