mirror of
https://github.com/k4yt3x/video2x.git
synced 2026-03-13 13:27:30 +08:00
redirected subprocess.Popen streams to system stdout and stderr
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user