diff --git a/src/strands_tools/editor.py b/src/strands_tools/editor.py index a70f86da..cc6152d8 100644 --- a/src/strands_tools/editor.py +++ b/src/strands_tools/editor.py @@ -314,8 +314,8 @@ def editor( console = console_util.create() try: - path = os.path.expanduser(path) - + path = os.path.abspath(os.path.expanduser(path)) + if not command: raise ValueError("Command is required")