Skip to content

Commit

Permalink
Fix the tilde expansion for user home folder (#550)
Browse files Browse the repository at this point in the history
This will enable the tilde expansion to map the output dir to the home
user using `~/path`.
  • Loading branch information
fboaventura authored Sep 2, 2024
1 parent 06d8578 commit 4787da9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parsedmarc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,7 @@ def save_output(results, output_directory="output",
aggregate_reports = results["aggregate_reports"]
forensic_reports = results["forensic_reports"]
smtp_tls_reports = results["smtp_tls_reports"]
output_directory = os.path.expanduser(output_directory)

if os.path.exists(output_directory):
if not os.path.isdir(output_directory):
Expand Down

0 comments on commit 4787da9

Please sign in to comment.