From 053e146b0c009657ab7b84c33bb380b1e82a4f63 Mon Sep 17 00:00:00 2001 From: Philippe Mongeau Date: Tue, 22 Jan 2013 22:45:07 -0500 Subject: [PATCH] fix the expanduser of the importfeeds dir configuration --- beetsplug/importfeeds.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beetsplug/importfeeds.py b/beetsplug/importfeeds.py index 8bf90aa23..9785a4a25 100644 --- a/beetsplug/importfeeds.py +++ b/beetsplug/importfeeds.py @@ -37,7 +37,8 @@ class ImportFeedsPlugin(BeetsPlugin): feeds_dir = self.config['dir'].get() if feeds_dir: - self.config['dir'] = os.path.expanduser(bytestring_path(feeds_dir)) + feeds_dir = os.path.expanduser(bytestring_path(feeds_dir)) + self.config['dir'] = feeds_dir if not os.path.exists(syspath(feeds_dir)): os.makedirs(syspath(feeds_dir))