]> khamidou — GitHub mirrors - minival.git/commitdiff
Don't run command locally
authorKarim Hamidou <khamidou@gmail.com>
Wed, 27 Dec 2017 19:55:01 +0000 (20:55 +0100)
committerKarim Hamidou <khamidou@gmail.com>
Wed, 27 Dec 2017 19:55:01 +0000 (20:55 +0100)
web.py

diff --git a/web.py b/web.py
index 69716cf141254530ff39943723ad416d79d71d6c..59938d3c3f60ebac11b6fd5345d465cdf86e808b 100644 (file)
--- a/web.py
+++ b/web.py
@@ -43,7 +43,7 @@ def execute_in_sandbox(code):
         cmd = "/usr/bin/python"
 
         os.dup2(write_pipe, sys.stdout.fileno())
-        os.execv(cmd, [cmd, tmp_filename])
+        # os.execv(cmd, [cmd, tmp_filename])
     else:
         os.close(write_pipe)
         os.waitpid(pid, 0)