From d824cd6516b2e2f3ac8e17a305c15210f97785b7 Mon Sep 17 00:00:00 2001 From: K4YT3X Date: Sun, 13 Sep 2020 16:43:44 -0400 Subject: [PATCH] added description for log file saving scheme --- src/video2x.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/video2x.py b/src/video2x.py index 4c5e6ef..a475116 100755 --- a/src/video2x.py +++ b/src/video2x.py @@ -13,7 +13,7 @@ __ __ _ _ ___ __ __ Name: Video2X Controller Creator: K4YT3X Date Created: Feb 24, 2018 -Last Modified: September 10, 2020 +Last Modified: September 13, 2020 Editor: BrianPetkovsek Last Modified: June 17, 2019 @@ -279,6 +279,10 @@ except Exception: if video2x_args.log is not None: log_file_path = video2x_args.log.absolute() + + # if log file path is not specified, create temporary file as permanent log file + # tempfile.TempFile does not have a name attribute and is not guaranteed to have + # a visible name on the file system else: log_file_path = tempfile.mkstemp(suffix='.log', prefix='video2x_')[1] with open(log_file_path, 'w', encoding='utf-8') as permanent_log_file: