mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-02-17 07:03:58 +00:00
Fix the tilde expansion for user home folder (#550)
This will enable the tilde expansion to map the output dir to the home user using `~/path`.
This commit is contained in:
committed by
GitHub
parent
06d8578c47
commit
4787da9ea1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user