STINNER Victor <vstin...@python.org> added the comment:

> It also erroneously replaces things like '$prefixpath'. It should probably do 
> split the path on the path separators and only replace components that are 
> equal to $prefix or $exec_prefix (so that the '$' can be escaped for 
> directories named as such literally, but that would require a pass to parse 
> the escapes).

re.sub() can be used to leave $prefixpath unchanged. Yeah, please open a 
separed issue. Sorry, I missed this part of the bug report.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue21016>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to