Skip to content

Commit 9370104

Browse files
Merge pull request #76 from kouyk/fix-home-expansion
2 parents 1daaae5 + 8d6d599 commit 9370104

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

condax/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class Config(BaseSettings):
3636

3737
@field_validator("prefix_path", "link_destination", mode="before")
3838
@classmethod
39-
def ensure_prefix_path(cls, v: Path) -> Path:
40-
v = v.expanduser()
39+
def ensure_prefix_path(cls, v: os.PathLike) -> Path:
40+
v = Path(v).expanduser()
4141
if not v.exists():
4242
v.mkdir(parents=True, exist_ok=True)
4343
v = v.resolve()

0 commit comments

Comments
 (0)