windows: error when migrating .beetsconfig

This commit is contained in:
Adrian Sampson 2013-01-31 12:29:37 -08:00
parent e6ea6dc875
commit 63d939d1d3
2 changed files with 3 additions and 1 deletions

View file

@ -331,7 +331,7 @@ def migrate_state(replace=False):
"""Copy the beets runtime state file from the old path (i.e.,
~/.beetsstate) to the new path (i.e., ~/.config/beets/state.pickle).
"""
srcfn = os.path.expanduser('~/.beetsstate')
srcfn = os.path.expanduser(os.path.join('~', '.beetsstate'))
if not os.path.exists(srcfn):
return

View file

@ -30,6 +30,8 @@ Other new stuff:
bad: "low" or "none" recommendations or when choosing a candidate
other than the first.
* Fix an error when migrating the ``.beetsstate`` file on Windows.
1.1b1 (January 29, 2013)
------------------------