[utils] `Popen`: Reset PyInstaller environment (#11258)
commitfbc66e3ab35743cc847a21223c67d88bb463cd9c
authorbashonly <88596187+bashonly@users.noreply.github.com>
Wed, 16 Oct 2024 03:53:53 +0000 (16 03:53 +0000)
committerGitHub <noreply@github.com>
Wed, 16 Oct 2024 03:53:53 +0000 (16 03:53 +0000)
tree441ae975fa47503512cb1a3889812e321a41f4f6
parent64d84d75ca8c19ec06558cc7c511f5f4f7a822bc
[utils] `Popen`: Reset PyInstaller environment (#11258)

- Forces spawning independent subprocesses for exes bundled with PyInstaller>=6.10
- Fixes regression introduced in fb8b7f226d251e521a89b23c415e249e5b788e5c
- Ref: https://pyinstaller.org/en/v6.10.0/CHANGES.html#incompatible-changes

Closes #11259
Authored by: bashonly, Grub4K

Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
yt_dlp/utils/_utils.py