Skip to content

Commit b264384

Browse files
add additional expand user calls
1 parent ce9b74f commit b264384

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
def load_rules() -> RuleCollection:
2727
if CUSTOM_RULES_DIR:
2828
rc = RuleCollection()
29-
path = Path(CUSTOM_RULES_DIR)
29+
path = Path(CUSTOM_RULES_DIR).expanduser()
3030
assert path.exists(), f"Custom rules directory {path} does not exist"
3131
rc.load_directories(directories=RULES_CONFIG.rule_dirs)
3232
rc.freeze()
@@ -62,7 +62,7 @@ def setUpClass(cls):
6262
RULE_LOADER_FAIL = True
6363
RULE_LOADER_FAIL_MSG = str(e)
6464

65-
cls.custom_dir = Path(CUSTOM_RULES_DIR).resolve() if CUSTOM_RULES_DIR else None
65+
cls.custom_dir = Path(CUSTOM_RULES_DIR).expanduser().resolve() if CUSTOM_RULES_DIR else None
6666
cls.rules_config = RULES_CONFIG
6767

6868
@staticmethod

0 commit comments

Comments
 (0)