Spaces:
Sleeping
Sleeping
朱东升
commited on
Commit
·
52fc799
1
Parent(s):
fa01b9b
requirements update25
Browse files
src/containerized_eval.py
CHANGED
@@ -72,7 +72,7 @@ def eval_string_script(language, program):
|
|
72 |
with tempfile.NamedTemporaryFile(suffix=file_ext, delete=True) as f:
|
73 |
f.write(program.encode("utf-8"))
|
74 |
f.flush()
|
75 |
-
print(Path(f.name))
|
76 |
result = eval_script(Path(f.name))
|
77 |
# Only save the first 2K of output from the running program. Any futher
|
78 |
# output is very likely an exceptionally long stack trace or a long
|
|
|
72 |
with tempfile.NamedTemporaryFile(suffix=file_ext, delete=True) as f:
|
73 |
f.write(program.encode("utf-8"))
|
74 |
f.flush()
|
75 |
+
print(f'Path(f.name): {Path(f.name)}')
|
76 |
result = eval_script(Path(f.name))
|
77 |
# Only save the first 2K of output from the running program. Any futher
|
78 |
# output is very likely an exceptionally long stack trace or a long
|