diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 7a5961f7a..b079d0caa 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -644,9 +644,10 @@ def import_files(lib, paths, copy, move, write, autot, logpath, threaded, """ # Check the user-specified directories. for path in paths: - if not singletons and not os.path.isdir(syspath(path)): + fullpath = syspath(normpath(path)) + if not singletons and not os.path.isdir(fullpath): raise ui.UserError('not a directory: ' + path) - elif singletons and not os.path.exists(syspath(path)): + elif singletons and not os.path.exists(fullpath): raise ui.UserError('no such file: ' + path) # Check parameter consistency. diff --git a/docs/changelog.rst b/docs/changelog.rst index 42bcebe60..6f0bf30bb 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -91,6 +91,7 @@ art for your music, enable this plugin after upgrading to beets 1.0b15. represented in the database on Windows; if you find that beets' paths are out of sync with your filesystem with this release, delete and recreate your database with ``beet import -AWC /path/to/music``. +* Fix ``import`` with relative path arguments on Windows. .. _artist credits: http://wiki.musicbrainz.org/Artist_Credit