diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-04-29 08:19:22 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-04-29 08:19:22 +0200 |
commit | 6659d40b2b00c18b42980f71643c343c0b5f42f2 (patch) | |
tree | 9de98602a13a1a44147ced0e2d45a620795a7d73 | |
parent | 5501edb0a779ebfe04876dd1a3b533d73b5be6f1 (diff) |
silence qt `Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'`
-rwxr-xr-x | bulk-audio/bulk-audio.py | 5 |
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 |