mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
* refactor command manager to use docker and move to docker sdk * fix read and write actions * actually run background cmd * use bash for running cmds and fix logs * keep logs in buffer file * fix up background logs * consolidate requirements * fix docker imports * add fixme * add remove fixme * fix sandbox.py path in README * fix typo annotation and prompt --------- Co-authored-by: Xingyao Wang <xingyao6@illinois.edu>
9 lines
168 B
Python
9 lines
168 B
Python
import os
|
|
|
|
def write(base_path, path, contents):
|
|
path = os.path.join(base_path, path)
|
|
with open(path, 'w') as file:
|
|
file.write(contents)
|
|
return ""
|
|
|