I have a python script that relies on the execution of an .exe file. It uses the subprocess module like this:
subprocess.run([
"ffmpeg/ffmpeg.exe",
url,
path])
The python script works normally up until the above instruction is interpreted, then I get this exception:
PermissionError: [Errno 13] Permission denied: PosixPath('storage/emulated/legacy/scripts/ffmpeg/ffmpeg.exe')
The directories are ordered like this:
"/scripts/pyscript.py
/scripts/ffmpeg/ffmpeg.exe"
I'm running Termux on an android device not rooted. I have already tried changing file permissions with chmod but I get "Operation not permitted".
Do you have any workaround?