Skip to content

Can't find MPV in a Python subprocess #154

Answered by C-Loftus
C-Loftus asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to solve this by simply putting the command in a separate script and then calling the script with

p = subprocess.Popen(["powershell.exe", script_path], shell=True, env=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = p.communicate()

I'm not entirely sure what caused this issue but I'm supposing that it is likely just a misunderstanding with regards to subprocesses and shell environments

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rany2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant