"PermissionError: [Errno 13] Permission denied" Blocks access to main.py
Hello so i have a program in which i try to send a string to stdin in a python file but for some reason i get the error "PermissionError: [Errno 13] Permission denied" for every file even the main.py file here is my code
##############
MAIN.PY
import subprocess,os
def server_command(cmd):
process.stdin.write(cmd+"\n")
process = None
executable = f"{os.getcwd()}/console.py"
process = subprocess.Popen(executable, stdin=subprocess.PIPE)
server_command("test")
########################
console.py
print(input())
You're not allowed to open other executables.
@SixBeeps dosent seem like it ive just tried another way and it worked either you can or repl.it has crap ways of blocking
@Commander07 Maybe I'm just big dumb and can not unable to thonk. Ofc you would be able to run other executables, I've done it before.
Just ignore I said what I said.
@Commander07 hey please do not use vulgar language in comments I changed it for you (this is a Christian Minecraft server)
@Zexogon so is 2b2t
See @kckusal's solution here:
https://repl.it/talk/ask/Temporary-solution-is-to-open-shell-from/24818/79493