diff --git a/gpt_engineer/core/default/disk_execution_env.py b/gpt_engineer/core/default/disk_execution_env.py index 8dfcbbc24b..42c2ca42e0 100644 --- a/gpt_engineer/core/default/disk_execution_env.py +++ b/gpt_engineer/core/default/disk_execution_env.py @@ -35,6 +35,7 @@ import fcntl import os + # Taken from https://gist.github.com/sebclaeys/1232088 def non_block_read(output): fd = output.fileno() @@ -45,6 +46,7 @@ def non_block_read(output): except: return "" + class DiskExecutionEnv(BaseExecutionEnv): """ An execution environment that runs code on the local file system and captures