Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -15,8 +15,6 @@ def run_pcbasic_code(code, timeout=60):
|
|
| 15 |
with open(code_path, "w") as f:
|
| 16 |
f.write(code)
|
| 17 |
|
| 18 |
-
env = os.environ.copy()
|
| 19 |
-
|
| 20 |
try:
|
| 21 |
process = subprocess.run(
|
| 22 |
[
|
|
@@ -26,7 +24,6 @@ def run_pcbasic_code(code, timeout=60):
|
|
| 26 |
"--video=SDL2",
|
| 27 |
"--output", img_path
|
| 28 |
],
|
| 29 |
-
env=env,
|
| 30 |
timeout=timeout,
|
| 31 |
capture_output=True
|
| 32 |
)
|
|
|
|
| 15 |
with open(code_path, "w") as f:
|
| 16 |
f.write(code)
|
| 17 |
|
|
|
|
|
|
|
| 18 |
try:
|
| 19 |
process = subprocess.run(
|
| 20 |
[
|
|
|
|
| 24 |
"--video=SDL2",
|
| 25 |
"--output", img_path
|
| 26 |
],
|
|
|
|
| 27 |
timeout=timeout,
|
| 28 |
capture_output=True
|
| 29 |
)
|