Skip to content

Commit

Permalink
fix: use tutor utils.execute instead of subprocess call
Browse files Browse the repository at this point in the history
  • Loading branch information
tecoholic committed Nov 14, 2024
1 parent 28949d8 commit c164596
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tutor/commands/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from tutor import config as tutor_config
from tutor import env, exceptions, fmt, hooks
from tutor import interactive as interactive_config
from tutor import serialize
from tutor import serialize, utils
from tutor.commands.context import Context
from tutor.commands.params import ConfigLoaderParam
from tutor.types import Config, ConfigValue
Expand Down Expand Up @@ -284,9 +284,9 @@ def edit(context: Context) -> None:
f"Failed to find utility to launch an editor. Edit {config_file} with the editor of your choice."
)

subprocess.call(open_cmd)
utils.execute(open_cmd)
click.echo(
"Remember to run 'tutor config save' after editing, to apply the changes to your environment."
"Remember to run 'tutor config save' after editing to apply the changes to your environment."
)


Expand Down

0 comments on commit c164596

Please sign in to comment.