Skip to content

Commit

Permalink
remove unneeded file path expansion from DocumentHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
deeplow committed Sep 19, 2022
1 parent dd2c1a9 commit 6c615a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dangerzone/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ def cli_main(
display_banner()

try:
document = DocumentHolder(os.path.abspath(filename))
document = DocumentHolder(filename)
except DocumentFilenameException as e:
click.echo(str(e))
exit(1)

# Validate safe PDF output filename
try:
if output_filename:
document.output_filename = os.path.abspath(output_filename)
document.output_filename = output_filename
else:
document.output_filename = (
f"{os.path.splitext(document.input_filename)[0]}-safe.pdf"
Expand Down

0 comments on commit 6c615a2

Please sign in to comment.