aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-04-29 08:19:22 +0200
committerlonkaars <loek@pipeframe.xyz>2024-04-29 08:19:22 +0200
commit6659d40b2b00c18b42980f71643c343c0b5f42f2 (patch)
tree9de98602a13a1a44147ced0e2d45a620795a7d73
parent5501edb0a779ebfe04876dd1a3b533d73b5be6f1 (diff)
silence qt `Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'`
-rwxr-xr-xbulk-audio/bulk-audio.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bulk-audio/bulk-audio.py b/bulk-audio/bulk-audio.py
index c0b8055..3507c7e 100755
--- a/bulk-audio/bulk-audio.py
+++ b/bulk-audio/bulk-audio.py
@@ -16,6 +16,11 @@ class TrashFileIO(object):
def flush(self): pass
trash_out = TrashFileIO()
+# replace stderr file descriptor with /dev/null
+os.dup2(os.open(os.devnull, os.O_WRONLY), 2)
+# this is the lowest level hack i could find that silences QT errors for
+# subprocesses too
+
sys.stdout = trash_out
import aqt
sys.stdout = real_stdout