From e374830cca8e7bda29e3edf7cbc32c4de33ea94e Mon Sep 17 00:00:00 2001 From: Bruno Cauet Date: Wed, 1 Apr 2015 09:54:30 +0200 Subject: [PATCH] Path queries: use {norm,sys}path on path. Finishes #1385. --- beets/library.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beets/library.py b/beets/library.py index 889f2094c..892f68d94 100644 --- a/beets/library.py +++ b/beets/library.py @@ -84,7 +84,8 @@ class PathQuery(dbcore.FieldQuery): colon = query_part.find(':') if colon != -1: query_part = query_part[:colon] - return os.sep in query_part and os.path.exists(query_part) + return (os.sep in query_part + and os.path.exists(syspath(normpath(query_part)))) def match(self, item): path = item.path if self.case_sensitive else item.path.lower()