Issue #194 resolved

FileLocator.relative_filename() could mangle the path too much in some unlikely cases

Marius Gedminas
created an issue

If your working directory is /src/myproject and you happen to have your source files in /src/myproject/branchname/src/myproject/foo.py, FileLocator().relative_filename() will strip both '/src/myproject/' substrings from the path, leaving just 'branchnamefoo.py'.

I'm attaching a test case and a fix.

Comments (2)

  1. Log in to comment