From 857533aca79273c75efb6e65c7402b6d4a752344 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 5 Aug 2014 18:47:42 +0200 Subject: [PATCH] conftypes: Expand user in Directory --- qutebrowser/config/conftypes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qutebrowser/config/conftypes.py b/qutebrowser/config/conftypes.py index 4c660b72d..f4ab3851e 100644 --- a/qutebrowser/config/conftypes.py +++ b/qutebrowser/config/conftypes.py @@ -795,6 +795,7 @@ class Directory(BaseType): return else: raise ValidationError(value, "may not be empty!") + value = os.path.expanduser(value) if not os.path.isdir(value): raise ValidationError(value, "must be a valid directory!") if not os.path.isabs(value):