Remove replaced_by_env_path decorator

This commit is contained in:
kramo
2023-06-10 20:54:49 +02:00
parent de3ef53148
commit d340e007e3
7 changed files with 12 additions and 41 deletions

View File

@@ -10,7 +10,6 @@ from src.importer.sources.source import (
URLExecutableSource,
)
from src.utils.decorators import (
replaced_by_env_path,
replaced_by_path,
replaced_by_schema_key,
)
@@ -65,8 +64,7 @@ class ItchSource(URLExecutableSource):
@property
@replaced_by_schema_key
@replaced_by_path("~/.var/app/io.itch.itch/config/itch/")
@replaced_by_env_path("XDG_DATA_HOME", "itch/")
@replaced_by_path("~/.config/itch")
@replaced_by_env_path("appdata", "itch/")
@replaced_by_path(shared.config_dir / "itch")
@replaced_by_path(shared.appdata_dir / "itch")
def location(self) -> Path:
raise FileNotFoundError()