Skip to content

Commit 76c6bf0

Browse files
Apply patch from 'elementreeinc/pptk@6ad513d' to avoid hang when debug=false
Signed-off-by: SamueleFacenda <[email protected]>
1 parent 697c09a commit 76c6bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pptk/viewer/viewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self, *args, **kwargs):
5353
self._process = subprocess.Popen(
5454
[os.path.join(_viewer_dir, 'viewer'), str(s.getsockname()[1])],
5555
stdout=subprocess.PIPE,
56-
stderr=(None if debug else subprocess.PIPE))
56+
stderr=(None if debug else subprocess.DEVNULL))
5757
if debug:
5858
print ('Started viewer process: %s' \
5959
% os.path.join(_viewer_dir, 'viewer'))

0 commit comments

Comments
 (0)