Closed wrboyce closed 5 years ago
ping @Syphdias @bhilburn is this repo still maintained?
ping @dritter too as you seem to do all the merging here.
Hi @wrboyce ,
Yes, this repo is still maintained. Sorry for the delay.
About the zero pattern: I remember writing this comment, but unfortunately not why it was done in the first place. A quick annotate didn't bring light into the dark either. Anyways, the code originated from #229 (Commit daa7255e85e939293bca28e93c8a058425368243 ) and I think it can be simplified as you suggested.
About how we proceed with this PR: We are close to releasing a new Version and I think this Bug affects master
as well. Could you port your fix over?
Description
Without this,
current_path
would be~/foo/bar
whereaspackage_path
would be/home/user/foo/bar
which breaks the substring replacement when calculating the subdirectory relative to the package (making the truncation far too greedy).Questions
I presume there is a reason for the complexity in this:
And that something simpler would not work? Something like this