From b290cf329e03cadc22bb94a87963a26cd77faf47 Mon Sep 17 00:00:00 2001 From: Zen <46526140+master-of-zen@users.noreply.github.com> Date: Mon, 13 Jan 2020 19:56:33 +0200 Subject: [PATCH] Os dependant logging checks, Muted Log for Windows --- av1an.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/av1an.py b/av1an.py index a074fc5..c448597 100755 --- a/av1an.py +++ b/av1an.py @@ -5,6 +5,7 @@ Option for KeyFrame Separation Fix error if no audio stream Windows PySceneDetect fail """ +import sys import os import shutil from os.path import join @@ -88,7 +89,11 @@ class Av1an: self.args = parser.parse_args() if self.logging != self.args.logging: - self.logging = f'&>> {self.args.logging}.log' + if sys.platform == 'linux': + self.logging = f'&>> {self.args.logging}.log' + #else: + # self.logging = f'> {self.args.logging}.log' + os.system(f'echo " Av1an Logging "> {self.args.logging}.log') def determine_resources(self):