From 716ae87a67b6baad5b626abec8856127b3fa0c27 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Fri, 16 Feb 2024 00:38:43 +0530 Subject: [PATCH] Fix no output arg case broken by previous commit. --- src/tartex/tartex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tartex/tartex.py b/src/tartex/tartex.py index 7e3482b..9c80a9a 100644 --- a/src/tartex/tartex.py +++ b/src/tartex/tartex.py @@ -246,7 +246,7 @@ def __init__(self, args): tar_base = ( Path(f"{self.args.output}.tar").expanduser() if self.args.output - else Path(f"{self.args.output}.tar") + else Path(self.main_file.stem).with_suffix(".tar") ) self.tar_file = self.cwd / tar_base # The '/' operation returns tar_base # if it is an absolute path