tobiasandtobias/webassets — pull request #2 by tgecho (2012-12-05 03:01:09+00:00)
Title: Feature/issue 117

I've run into a few problems where you use env.resolver.resolve_source(...). It seems to return a list (with one path) when I set env.load_path. Since each of the places using it expect a single path, they all fail.

According to the docs this can return a single url, a list or even a bundle. I'm not sure of all the potential ways this can happen. I don't know when a bundle could be returned (or what to do with it generically). Obviously for ExternalAssets purposes it would be unexpected. It seems sane to have a way to resolve and just grab the first thing found.