Skip to content

Commit

Permalink
Log newline, print log at end
Browse files Browse the repository at this point in the history
  • Loading branch information
zediious committed Oct 21, 2022
1 parent 9965bf5 commit e425c6a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mo2-purge-downloads/purge.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
mod_archive = path.replace('.meta', '').replace("downloads\\", '')
remove(mod_archive)

log_file.write(f"- {mod_archive}")
log_file.write(f"- {mod_archive}\n")

except FileNotFoundError:

Expand All @@ -51,4 +51,9 @@

remove(path.replace("downloads\\", ''))


with open('mo2-purge-downloads.log', 'r') as log_file:

print(" ")
for line in log_file:

print(line.strip())

0 comments on commit e425c6a

Please sign in to comment.