Skip to content

Commit 3a4dac8

Browse files
committed
only log that the output file was resolved if it was
Signed-off-by: Zen <[email protected]>
1 parent 7640c4d commit 3a4dac8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/ugrd/base/core.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "desultory"
2-
__version__ = "4.1.0"
2+
__version__ = "4.1.1"
33

44
from pathlib import Path
55
from shutil import rmtree, which
@@ -258,8 +258,11 @@ def _process_out_file(self, out_file: str) -> None:
258258
return
259259

260260
if "/" in out_file: # If the out_file contains a path, resolve it
261-
out_file = Path(out_file).resolve()
262-
self.logger.info("Resolved relative output path: %s" % out_file)
261+
out_file = Path(out_file)
262+
resolved_out_file = out_file.resolve()
263+
if resolved_out_file != out_file:
264+
out_file = resolved_out_file
265+
self.logger.info("Resolved relative output path: %s" % out_file)
263266
else:
264267
out_file = Path(out_file)
265268

0 commit comments

Comments
 (0)