mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-02-04 11:07:48 -08:00
feat(interface): use click.edit
This commit is contained in:
@@ -931,9 +931,9 @@ def anilist(config: "Config", anilist_config: QueryDict):
|
||||
return AniList.search(id_in=anime_list)
|
||||
|
||||
def edit_config():
|
||||
import subprocess
|
||||
from click import edit
|
||||
|
||||
subprocess.run([os.environ.get("EDITOR", "open"), USER_CONFIG_PATH])
|
||||
edit(filename=USER_CONFIG_PATH)
|
||||
if config.use_rofi:
|
||||
config.load_config()
|
||||
config.use_rofi = True
|
||||
|
||||
Reference in New Issue
Block a user