Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Avoid spawning console windows when running from .pyw#126

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Byron merged 1 commit intogitpython-developers:0.3fromboppreh:patch-1
Nov 17, 2014
Merged

Avoid spawning console windows when running from .pyw#126

Byron merged 1 commit intogitpython-developers:0.3fromboppreh:patch-1
Nov 17, 2014

Conversation

boppreh
Copy link
Contributor

I'm developing a small background application (Windows + PyQt) to track Git repositories.

The GitPython module works great, but when called from a windowless script (.pyw) each command spawns a console window. Those windows are empty and last only a second, but I think they should not be there at all.

I saw it was usingPopen to call thegit executable and added ashell=True parameter to avoid spawning those windows.

Be aware I haven't tested this on other machines or operating systems.

By adding `shell=True,` to the list of Popen parameters, we avoid spawning console windows when scripts call this method from a windowless (.pyw) Python script.
@ByronByron merged commit3f277ba intogitpython-developers:0.3Nov 17, 2014
@Byron
Copy link
Member

I didn't test it on windows either, but made sure a shell is only enforced on windows now.
This could be an issue, as I don't remember having experienced this popup issue back in the days when testing on windows.

@ByronByron added this to thev0.3.3 milestoneNov 17, 2014
Byron added a commit that referenced this pull requestApr 8, 2015
... if it is not found. Previously, especially on windows, this wasn'texplicit.Fixes#248, affects#126
@Byron
Copy link
Member

Please note that with the release ofv0.3.7, you will need to to setgit.Git.USE_SHELL=True to get back to the same behaviour.
See related issue#248 for more information.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Milestone
v0.3.3
Development

Successfully merging this pull request may close these issues.

2 participants
@boppreh@Byron

[8]ページ先頭

©2009-2025 Movatter.jp