Skip to content

Commit

Permalink
shell=True added
Browse files Browse the repository at this point in the history
  • Loading branch information
firatkiral committed Feb 12, 2023
1 parent 7125b3f commit 1e218f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pypeek/main.py
Expand Up @@ -1077,7 +1077,8 @@ def encode_video(self):
"-progress", "pipe:1"]

try:
process = subprocess.Popen(systemcall, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, encoding='utf-8', errors='replace')
# Shell = True, otherwise the terminal window pops up on Windows app
process = subprocess.Popen(systemcall, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, encoding='utf-8', errors='replace')
while True:
realtime_output = process.stdout.readline()
if realtime_output == '' and process.poll() is not None:
Expand Down

0 comments on commit 1e218f9

Please sign in to comment.