diff --git a/src/wrappers/anime4kcpp.py b/src/wrappers/anime4kcpp.py index c8531b9..720bf8b 100755 --- a/src/wrappers/anime4kcpp.py +++ b/src/wrappers/anime4kcpp.py @@ -130,4 +130,4 @@ class WrapperMain: self.print_lock.acquire() Avalon.debug_info(f'[upscaler] Subprocess {os.getpid()} executing: {" ".join(execute)}') self.print_lock.release() - return subprocess.Popen(execute) + return subprocess.Popen(execute, stdout=sys.stdout, stderr=sys.stderr) diff --git a/src/wrappers/ffmpeg.py b/src/wrappers/ffmpeg.py index a8f74b7..e3cefea 100755 --- a/src/wrappers/ffmpeg.py +++ b/src/wrappers/ffmpeg.py @@ -13,6 +13,7 @@ Description: This class handles all FFmpeg related operations. import json import pathlib import subprocess +import sys # third-party imports from avalon_framework import Avalon @@ -316,4 +317,4 @@ class Ffmpeg: # turn all list elements into string to avoid errors execute = [str(e) for e in execute] Avalon.debug_info(f'Executing: {" ".join(execute)}') - return subprocess.Popen(execute) + return subprocess.Popen(execute, stdout=sys.stdout, stderr=sys.stderr) diff --git a/src/wrappers/gifski.py b/src/wrappers/gifski.py index 9804fc6..e1c9d1f 100755 --- a/src/wrappers/gifski.py +++ b/src/wrappers/gifski.py @@ -12,6 +12,7 @@ Description: High-level wrapper for Gifski. # built-in imports import pathlib import subprocess +import sys # third-party imports from avalon_framework import Avalon @@ -71,4 +72,4 @@ class Gifski: Avalon.debug_info(f'Executing: {execute}') - return subprocess.Popen(execute) + return subprocess.Popen(execute, stdout=sys.stdout, stderr=sys.stderr) diff --git a/src/wrappers/realsr_ncnn_vulkan.py b/src/wrappers/realsr_ncnn_vulkan.py index 341e9f1..43992da 100755 --- a/src/wrappers/realsr_ncnn_vulkan.py +++ b/src/wrappers/realsr_ncnn_vulkan.py @@ -16,6 +16,7 @@ import os import pathlib import platform import subprocess +import sys import threading # third-party imports @@ -107,4 +108,4 @@ class WrapperMain: self.print_lock.acquire() Avalon.debug_info(f'[upscaler] Subprocess {os.getpid()} executing: {" ".join(execute)}') self.print_lock.release() - return subprocess.Popen(execute) + return subprocess.Popen(execute, stdout=sys.stdout, stderr=sys.stderr) diff --git a/src/wrappers/srmd_ncnn_vulkan.py b/src/wrappers/srmd_ncnn_vulkan.py index ae19893..ed1531b 100755 --- a/src/wrappers/srmd_ncnn_vulkan.py +++ b/src/wrappers/srmd_ncnn_vulkan.py @@ -16,6 +16,7 @@ import os import pathlib import platform import subprocess +import sys import threading # third-party imports @@ -108,4 +109,4 @@ class WrapperMain: self.print_lock.acquire() Avalon.debug_info(f'[upscaler] Subprocess {os.getpid()} executing: {" ".join(execute)}') self.print_lock.release() - return subprocess.Popen(execute) + return subprocess.Popen(execute, stdout=sys.stdout, stderr=sys.stderr) diff --git a/src/wrappers/waifu2x_caffe.py b/src/wrappers/waifu2x_caffe.py index 975d7ce..7df3724 100755 --- a/src/wrappers/waifu2x_caffe.py +++ b/src/wrappers/waifu2x_caffe.py @@ -15,6 +15,7 @@ import argparse import os import pathlib import subprocess +import sys import threading # third-party imports @@ -116,4 +117,4 @@ class WrapperMain: self.print_lock.acquire() Avalon.debug_info(f'[upscaler] Subprocess {os.getpid()} executing: {" ".join(execute)}') self.print_lock.release() - return subprocess.Popen(execute) + return subprocess.Popen(execute, stdout=sys.stdout, stderr=sys.stderr) diff --git a/src/wrappers/waifu2x_converter_cpp.py b/src/wrappers/waifu2x_converter_cpp.py index c1d4a7b..361edf1 100755 --- a/src/wrappers/waifu2x_converter_cpp.py +++ b/src/wrappers/waifu2x_converter_cpp.py @@ -15,6 +15,7 @@ import argparse import os import pathlib import subprocess +import sys import threading # third-party imports @@ -122,4 +123,4 @@ class WrapperMain: self.print_lock.acquire() Avalon.debug_info(f'[upscaler] Subprocess {os.getpid()} executing: {" ".join(execute)}') self.print_lock.release() - return subprocess.Popen(execute) + return subprocess.Popen(execute, stdout=sys.stdout, stderr=sys.stderr) diff --git a/src/wrappers/waifu2x_ncnn_vulkan.py b/src/wrappers/waifu2x_ncnn_vulkan.py index 583099c..e9b87fa 100755 --- a/src/wrappers/waifu2x_ncnn_vulkan.py +++ b/src/wrappers/waifu2x_ncnn_vulkan.py @@ -19,6 +19,7 @@ import os import pathlib import platform import subprocess +import sys import threading # third-party imports @@ -111,4 +112,4 @@ class WrapperMain: self.print_lock.acquire() Avalon.debug_info(f'[upscaler] Subprocess {os.getpid()} executing: {" ".join(execute)}') self.print_lock.release() - return subprocess.Popen(execute) + return subprocess.Popen(execute, stdout=sys.stdout, stderr=sys.stderr)