ref: Use recommended subprocess method to edit
This commit is contained in:
parent
7dbd93796d
commit
5e6ab6854f
1 changed files with 1 additions and 2 deletions
3
topen.py
3
topen.py
|
|
@ -93,8 +93,7 @@ def get_notes_file(uuid: str, notes_dir: Path, notes_ext: str) -> Path:
|
|||
def open_editor(file: Path, editor: str) -> None:
|
||||
"""Opens a file with the chosen editor."""
|
||||
_ = whisper(f"Editing note: {file}")
|
||||
proc = subprocess.Popen(f"{editor} {file}", shell=True)
|
||||
_ = proc.wait()
|
||||
_ = subprocess.run(f"{editor} {file}", shell=True)
|
||||
|
||||
|
||||
def add_annotation_if_missing(task: Task, annotation_content: str) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue