-
-
Notifications
You must be signed in to change notification settings - Fork 394
fix: Do not create command prompt window on subprocess #436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f076cdc
to
b5b2ccf
Compare
exclude = ["main_window.py", "home_ui.py", "resources.py", "resources_rc.py", "**/vendored/"] | ||
|
||
[tool.mypy] | ||
strict_optional = false | ||
disable_error_code = ["union-attr", "annotation-unchecked", "import-untyped"] | ||
explicit_package_bases = true | ||
warn_unused_ignores = true | ||
exclude = ['tests'] | ||
exclude = ['tests', 'src/qt/helpers/vendored'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why the ruff exclusion pattern for vendored is different than mypy's?
This seems to be working when building on Windows with PyInstaller 6.10.0 and testing with video previews and audio waveform previews. I don't see anything immediately wrong with this besides MyPy complaining about the vendored files, which might not be excluded correctly. Also for some reason the last 4 commits keep creeping forward since they say they were authored in the future 🤷♂️ |
Pulling this now with some ignore comments on the affected files. Couldn't seem to get the folder to exclude either, but this will work for now. Thank you so much for getting a fix for this! |
Patches files from abandoned libraries are located and updated in src/qt/helpers/vendored with modified sections labeld PATCHED. A wrapper around subprocess.Popen automatically sets the creation flag to no window on windows.
) * fix: Do not create command prompt window on subcmd Patches files from abandoned libraries are located and updated in src/qt/helpers/vendored with modified sections labeld PATCHED. A wrapper around subprocess.Popen automatically sets the creation flag to no window on windows. * fix: Replace Popen in mediainfo_json decoder * fixup: Pipe stdin to stdin * chore: Exclude vendored dir from tooling checks * suppress mypy warnings
Patches files from abandoned libraries are located and updated in src/qt/helpers/vendored with modified sections labeled PATCHED. A wrapper around subprocess.Popen automatically sets the creation flag to no window on windows.
Must be run via a pyinstaller executable for problem to occur.