This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mathstuf
Recipients mathstuf, vstinner
Date 2020-02-15.21:23:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581801814.61.0.885259547338.issue39624@roundup.psfhosted.org>
In-reply-to
Content
Should be replaced (using $prefix here, but equally viable for $exec_prefix). Each quoted line is a path using a raw string.

r"$prefix"
r"$prefix/foo"

and on Windows:

r"$prefix\bar"

These should *not* be replaced:

r"$prefixvar/subdir"
r"not/a/$prefix"
r"$prefix spacevar/subdir"

because here, the `$prefix` is part of another path component. This does leave the directory literally named "$prefix" in a bit of a pickle.

Like I said, it's niche, but if we're going to fix it, let's at least consider handling more cases properly.
History
Date User Action Args
2020-02-15 21:23:34mathstufsetrecipients: + mathstuf, vstinner
2020-02-15 21:23:34mathstufsetmessageid: <1581801814.61.0.885259547338.issue39624@roundup.psfhosted.org>
2020-02-15 21:23:34mathstuflinkissue39624 messages
2020-02-15 21:23:34mathstufcreate