from subprocess import check_output
check_output(["fmedia","--list-dev"])
I met Command '['fmedia', '--list-dev']' returned non-zero exit status 1.
But when I run fmedia --list-dev directly in my terminal, it worked fine. Can I know if someone met this before?
I tried adding "shell=True" after the bracket, but the output is the same with typing only "fmedia"
Hi when I run
I met
Command '['fmedia', '--list-dev']' returned non-zero exit status 1.
But when I run fmedia --list-dev directly in my terminal, it worked fine. Can I know if someone met this before? I tried adding "shell=True" after the bracket, but the output is the same with typing only "fmedia"