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

Commitb3f873a

Browse files
smokephilByron
authored andcommitted
set unassigned stdin to improve pyinstaller compatibility
To create a window application with pyinstaller, all suprocess input and output streams must be assigned and must not be None.https://stackoverflow.com/a/51706087/7076612
1 parentb719e18 commitb3f873a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎git/cmd.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
fromsubprocessimport (
1313
call,
1414
Popen,
15-
PIPE
15+
PIPE,
16+
DEVNULL
1617
)
1718
importsubprocess
1819
importthreading
@@ -873,7 +874,7 @@ def execute(self,
873874
env=env,
874875
cwd=cwd,
875876
bufsize=-1,
876-
stdin=istream,
877+
stdin=istreamorDEVNULL,
877878
stderr=PIPE,
878879
stdout=stdout_sink,
879880
shell=shellisnotNoneandshellorself.USE_SHELL,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp