paulonteri / remote-code-execution-environment

Have you ever wondered how code execution on competitive programming websites like leetcode works? Code that runs code. Tried implementing that.
https://runcode.paulonteri.com
MIT License
152 stars 40 forks source link

Add subprocess to the validation #4

Closed dorelidan closed 4 years ago

dorelidan commented 4 years ago

Fix validation by code execution: import subprocess process = subprocess.run(['whoami'], stdout=subprocess.PIPE, universal_newlines=True)

print(process.stdout)

paulonteri commented 4 years ago

Thank you!