Skip to content

Commit cd0825a

Browse files
committed
fix: expand ~/
1 parent b2a8433 commit cd0825a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/docs/CODE_TAG_SUMMARY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
| Type | Comment | Last Edit | Source File |
44
|---------|------------------------------------------------------------------|------------|------------------------------------------------------------------------------------------------------------------------------------------|
5-
| PLANNED | Add a flag (--debug & store_true) to print debugging information | 2023-02-02 | [tail_jsonl/scripts.py:30](https://github.com/KyleKing/tail-jsonl/blame/fd15e5907afae783ba21bb0f9d310cc6b08008c4/tail_jsonl/main.py#L34) |
5+
| PLANNED | Add a flag (--debug & store_true) to print debugging information | 2023-02-02 | [tail_jsonl/scripts.py:31](https://github.com/KyleKing/tail-jsonl/blame/fd15e5907afae783ba21bb0f9d310cc6b08008c4/tail_jsonl/main.py#L34) |
66

77
Found code tags for PLANNED (1)
88

tail_jsonl/scripts.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def _load_config(config_path: Optional[str]) -> Config:
2020
"""Return loaded specified configuration file."""
2121
user_config: Dict = {} # type: ignore[type-arg]
2222
if config_path:
23-
user_config = tomllib.loads(Path(config_path).read_text(encoding='utf-8'))
23+
pth = Path(config_path).expanduser()
24+
user_config = tomllib.loads(pth.read_text(encoding='utf-8'))
2425
return Config(**user_config)
2526

2627

0 commit comments

Comments
 (0)