fix the expanduser of the importfeeds dir configuration

This commit is contained in:
Philippe Mongeau 2013-01-22 22:45:07 -05:00
parent a675b907ed
commit 053e146b0c

View file

@ -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))