Closed deshipu closed 10 years ago
@deshipu could you rebase on the test-for-path-conflicts
branch? I added this commit 56c7db6e2b09f8.
This looks concise and simple. I like it. Let's wait for @rockymeza opinion on this pull request since I'm not 100% sure about the logic of this code.
I have no idea how to update this pull request with the rebased version, so I will just make a new one.
@deshipu, thank so much for this doing this and thanks for using django-pyscss.
Just so you know. If you rebase your branch, you can force push and github will update the pull request. For example:
git fetch upstream
git rebase upstream/test-for-path-conflicts
git push -f origin master
Make it try all the combinations of prefixes and suffixes first, and then try the original path. This way if there is a directory named the same as our file, but without the extension and/or prefix, we don't try to open it and avoid raising IOError.
Fixes #10.