-
Notifications
You must be signed in to change notification settings - Fork 43.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(forge): Add
mount
method to FileStorage
& execute code in mo…
…unted workspace (#7115) * Add `FileStorage.mount()` method, which mounts (part of) the workspace to a local path * Add `watchdog` library to watch file changes in mount * Amend `CodeExecutorComponent` * Amend `execute_python_file` to execute Python files in a workspace mount * Amend `execute_python_code` to create temporary .py file in workspace instead of as a local file * Add support for `Path` argument to `filename` parameter on `execute_python_file` * Fix `test_execute_python_code` (by making it async)
- Loading branch information
Showing
7 changed files
with
272 additions
and
142 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.