Skip to content

Commit

Permalink
Stop using deprecated talon setting support (#2166)
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey authored and cursorless-bot committed Feb 20, 2024
1 parent ad69659 commit cbff4be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/csv_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from pathlib import Path
from typing import Callable, Iterable, Optional, TypedDict

from talon import Context, Module, actions, app, fs
from talon import Context, Module, actions, app, fs, settings

from .conventions import get_cursorless_list_name
from .vendor.inflection import pluralize
Expand All @@ -20,7 +20,7 @@
"cursorless_default_vocabulary",
desc="Use default cursorless vocabulary instead of user custom",
)
cursorless_settings_directory = mod.setting(
mod.setting(
"cursorless_settings_directory",
type=str,
default="cursorless-settings",
Expand Down Expand Up @@ -453,7 +453,7 @@ def get_full_path(filename: str):
filename = f"{filename}.csv"

user_dir: Path = actions.path.talon_user()
settings_directory = Path(cursorless_settings_directory.get())
settings_directory = Path(settings.get("user.cursorless_settings_directory"))

if not settings_directory.is_absolute():
settings_directory = user_dir / settings_directory
Expand Down

0 comments on commit cbff4be

Please sign in to comment.